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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
hcze
Helper I
Helper I

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.


Go to 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.


Go to 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
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.