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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Anonymous
Not applicable

rate of change

Hello, 

 

I want to calculate a rate of change between : my column Result2021 and my column Budget2021.

My column Result2021 in my visuel is a measure

My column Budget2021 is a column in my database

 

How can I do a DAX formula to do : (Result2021 - Budget2021) / Budget 2021

 

I have already do this with Result2021 and Result2020 because there are 2 mesures so I have got no problem.

 

Somebody can help me please ? 

 

1 ACCEPTED SOLUTION

Hi, @Anonymous 

Sorry for the late reply.

 

The formula is  OK. It seems that you just need to change the  cross filter direction to both.

34.png

 

33.png

 

 

Best Regards,
Community Support Team _ Eason
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

 

View solution in original post

13 REPLIES 13
niteshtrehan89
Helper III
Helper III

Hi, Please try the below measure

Resultset=

var result= [result2021] 

var budget= sum(budget[2021])

return

divide(result-budget,budget)

Anonymous
Not applicable

Hi, i have test your measure, here was the result : 

 

MaximeVall_0-1621409273447.png

it's not what I thought...

I don't understand why it doesn't work

Anonymous
Not applicable

MaximeVall_3-1620635957924.png

 

Anonymous
Not applicable

MaximeVall_0-1621344928331.png

The screenshot above is when i put the formula, you can see that there is a problem because for example you can see "Direction Technique Etude" two times without a real rate of change. What I want is like the screenshot below with the name of the sections one time for each with the rate of change next to it. 

Like my column in my table named "VAR R21-R20". I don't know if I expressed myself well and I apologize, I do my best.

MaximeVall_1-1621344946657.png

 

Hi, @Anonymous 
"Direction Technique Etude" appears twice, but they do not have the same N'(2060, 2070).

Have you checked your formula "Total heures AA"? It seems that column 'R2021' does not have a value on some rows.

10.png

Best Regards,
Community Support Team _ Eason

Anonymous
Not applicable

Hi @v-easonf-msft,

MaximeVall_1-1621409601425.png

My formula do the sum of my column where there are the hours clocked by employees.

Hi,  @Anonymous 

Sorry, I  don’t see any errors in the formula.

Can you recheck the value of R2021 where section is "Direction Technique Etude"  and  N' is 2060?

Make sure that the value here is not empty.

 

If it is convenient, can you share sample files and part of the data for further research?

 

Best Regards,
Community Support Team _ Eason

Anonymous
Not applicable

Hi, @v-easonf-msft 

 

I don't know how I can share the file on the forum in any other way than having it hosted on a site.

 

Here is the link of the .pbix hosted on the TransferNow site:
https://www.transfernow.net/dl/20210519CeH5O7MN

 

Sincerely

Hi, @Anonymous 

Sorry for the late reply.

 

The formula is  OK. It seems that you just need to change the  cross filter direction to both.

34.png

 

33.png

 

 

Best Regards,
Community Support Team _ Eason
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

 

Anonymous
Not applicable

Hi @v-easonf-msft , 

 

No problem for the late reply, Thanks !

But I don't understand why I need to put the cross filter direction to both. 

 

Sincerly,

 

Hi, @Anonymous 

I didn't see  errors from your screenshot.

Can you explain your expected result in detail?

Best Regards,
Community Support Team _ Eason

 

Anonymous
Not applicable

It doesn't work 

MaximeVall_0-1620635702494.png

MaximeVall_1-1620635736254.png

MaximeVall_2-1620635755836.png

 

 

amitchandak
Super User
Super User

@Anonymous , across the common dimension of grand total level 

 

divide( [Result2021] - Sum(Table[Budget2021]) , Sum(Table[Budget2021]))

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.