cancel
Showing results for 
Search instead for 
Did you mean: 
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 accept it as the solution to help other members find it faster, and give a big thumbs up.

Best regards, JiHwan Kim

Linkedin: https://www.linkedin.com/in/jihwankim1975/

Twitter: https://twitter.com/Jihwan_JHKIM

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 accept it as the solution to help other members find it faster, and give a big thumbs up.

Best regards, JiHwan Kim

Linkedin: https://www.linkedin.com/in/jihwankim1975/

Twitter: https://twitter.com/Jihwan_JHKIM

View solution in original post

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
UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

November Power BI Update 768x460.png

Check it Out!

Click here to read more about the November 2021 Updates!

M365 768x460.jpg

Microsoft 365 Collaboration Conference | December 7–9, 2021

Join us, in-person, December 7–9 in Las Vegas, for the largest gathering of the Microsoft community in the world.