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

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

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 and 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.


Click here and 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
Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

July 2024 Power BI Update

Power BI Monthly Update - July 2024

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

July Newsletter

Fabric Community Update - July 2024

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