Forum Discussion
Calculated Column
- 1 year ago
Hi,
I am not sure if I understood your question correctly, but I tried to create a sample pbix file like below.
Please check the below picture and the attached pbix file.
I tried to use OFFSET DAX function in the calculated column formula.
OFFSET function (DAX) - DAX | Microsoft Learn
value(price) calculated column = VAR _nextrow = MAXX ( OFFSET ( 1, SUMMARIZE ( data, data[row#] ), ORDERBY ( data[row#], ASC ) ), data[row#] ) VAR _nextaction = MAXX ( FILTER ( data, data[row#] = _nextrow ), data[action] ) VAR _condition = _nextaction = "sell" && data[action] = "buy" RETURN IF ( _condition, data[price] )
Hi @LoganFFS,
We wanted to kindly follow up to check if the solution provided by the user resolved your issue.
If any response resolved your issue, please mark it as "Accept as solution" and click "Yes" if you found it helpful.
Thanks and regards,
Anjan Kumar Chippa
Hi @LoganFFS,
As we haven’t heard back from you, we wanted to kindly follow up to check if the solution provided by the user resolved your issue.
If any response resolved your issue, please mark it as "Accept as solution" and click "Yes" if you found it helpful.
Thanks and regards,
Anjan Kumar Chippa