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

Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now

Reply
hcze
Helper II
Helper II

Difference of ratios

I am trying to calculate the difference between the two calculated ratios, instead of recalculating the ratio based on the whole data set.

In the below example, the desired difference is -4.36% instead of 135.29%. Here is the pbix file 

Any helps appreciated.

 

hcze_1-1625706507194.png

 

 

1 ACCEPTED SOLUTION
Jihwan_Kim
Super User
Super User

If I may suggest, I highly recommend changing the source table structure in Power Query Editor.

However, the below is one of the solutions if there are any reasons that this table structure has no choice but to be used.

 

Picture1.png


If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.


Click here to visit my LinkedIn page

View solution in original post

3 REPLIES 3
Jihwan_Kim
Super User
Super User

If I may suggest, I highly recommend changing the source table structure in Power Query Editor.

However, the below is one of the solutions if there are any reasons that this table structure has no choice but to be used.

 

Picture1.png


If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.


Click here to visit my LinkedIn page

Thanks Jihwan! That works perfectly.

 

The data provided is only a subset of a table, apart from the Variant subset the rest is necessary. I would love to calc the variant using DAX instead but I am not sure if I could do that and achieve the same outcome (ie ratios).  Pointers?

Ashish_Mathur
Super User
Super User

Hi,

Your sheet1 table is not well arranged.  I do not see any use the of the Current/Prior column.  What is the purpose of that column? 


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

February Power BI Update Carousel

Power BI Monthly Update - February 2026

Check out the February 2026 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.