This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. We're covering it all. You won't want to miss it.
Learn moreLevel up your Power BI skills this month - build one visual each week and tell better stories with data! Get started
HI All,
I need the following DAX ,
Divide first column value to next column second row value
current dax i am using
which is not producing the required result.
any help highly appreciated
Thanks
Thanks for your support.
actyually these both are measures.
[Receivables Balance -23M][Receivables Balance -24M]
Determine from the column [Receiable Balance] as below DAX
[Receivables Balance -23M] = CALCULATE ([Receivables Balance], DATEADD('Date'[Date], -23, MONTH))
[Receivables Balance -24M] = CALCULATE ([Receivables Balance], DATEADD('Date'[Date], -24, MONTH))
regards,
Hi @hb ,
I think there should be a date column or an index column in your data model to determine the order of the values.
If there isn't, I suggest you to add an index in Power Query Editor.
Percentage =
VAR _PREVIOUS23 = CALCULATE(SUM('Table'[Receivables Balance -23M]),FILTER(ALL('Table'),'Table'[Index] = EARLIER('Table'[Index]) - 1))
RETURN
DIVIDE(_PREVIOUS23,[Receivables Balance -24M])
Result is as below.
Best Regards,
Rico Zhou
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Sign up to receive a private message when registration opens and key events begin.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
| User | Count |
|---|---|
| 3 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |