Select and _Thisrow not working

Good day,
I want to sum the values ​​of the column (ROI) in the table "arbitraje" in another table "summary" IF I use this expression "SUM(SELECT(arbitraje[ROI],[_thisrow].[Crypto]= [Crypto]))" the result is zero, but on the original tables it´s work.

Thanks for your timeimagen_2024-06-13_170943632.pngimagen_2024-06-13_171022351.png

 

Solved Solved
0 3 118
2 ACCEPTED SOLUTIONS

It looks like you have these set up with a reference between the Summary table and the arbitraje table with a reference between Summary[ID] and andarbitraje[cripto]. In this case you should have a REF_ROW column called [Related arbitrajes]. You should be able to use:

  • SUM([Related arbitrajes][ROI])

If that is not the case, it seems like your SELECT() should be 

  • SUM(SELECT(arbitraje[ROI],[cripto]=[_thisRow].[ID]))

View solution in original post

Hello cjpm74, I'm glad your issue got solved. Would you be able to mark lynchk21's response as the solution so if other users have the issue they can find it easier.

View solution in original post

3 REPLIES 3

It looks like you have these set up with a reference between the Summary table and the arbitraje table with a reference between Summary[ID] and andarbitraje[cripto]. In this case you should have a REF_ROW column called [Related arbitrajes]. You should be able to use:

  • SUM([Related arbitrajes][ROI])

If that is not the case, it seems like your SELECT() should be 

  • SUM(SELECT(arbitraje[ROI],[cripto]=[_thisRow].[ID]))


@lynchk21 wrote:

If that is not the case, it seems like your SELECT() should be 

  • SUM(SELECT(arbitraje[ROI],[cripto]=[_thisRow].[ID]))

 

Thank you for your time, indeed this structure made the data display correctly. I reiterate my thanks, cheers!

Hello cjpm74, I'm glad your issue got solved. Would you be able to mark lynchk21's response as the solution so if other users have the issue they can find it easier.

Top Labels in this Space