Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

July 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! Learn more

Reply
hb
Frequent Visitor

Divide first column value to next column second row value

HI All,

 

I need the following DAX , 

Divide first column value to next column second row value

 

current dax i am using 

Receivables Balance -23M % = DIVIDE([Receivables Balance -23M],[Receivables Balance -24M],0)

 

which is not producing the required result.

 

hb_0-1683711109391.png

 

any help highly appreciated

 

Thanks 

2 REPLIES 2
hb
Frequent Visitor

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,

 

Anonymous
Not applicable

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.

vrzhoumsft_0-1683861314385.png

 

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.

 

Helpful resources

Announcements
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

60 days of Data Days Carousel

Data Days 2026

Join Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.