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
Anonymous
Not applicable

Percent point difference between 2 columns (expressed as % of grand total)

Hi 

 

I have the following data

Company2017 sales2018 sales
A$40$50
B$60$100
total$100$150

 

 

 

I've converted this to express market share, by choosing visualization as - express as % of grand total

Company2017 share2018 share
A40%33%
B60%67%
total100%100%

 

 

 

Now I want to get the following output

 

Company2017 share2018 shareChange
A40%33%-7% pt
B60%67%+ 6% pt
total100%100% 

 

 

The problem is that I'm not able to get the difference to be expressed as percent point difference.

I'm currently using a Measure that os defined as : Change= 2018 share - 2017 share

 

This only expresses Change as either absolute $ difference in sales value OR

expresses this $ difference as % of row/column total. None of this delivers the desired output.

 

I'll appreciate any help on this!

1 REPLY 1
Anonymous
Not applicable

@Anonymous  Please create following measures

Share 2017 = 
VAR Sales_2k17 = SUM(Test[2017 Sales])
VAR All_2017 = CALCULATE(SUM(Test[2017 Sales]),ALL(Test))
RETURN DIVIDE(Sales_2k17,All_2017,0)

Share 2018 = 
VAR Sales_2k18 = SUM(Test[2018 Sales])
VAR All_2018 = CALCULATE(SUM(Test[2018 Sales]),ALL(Test))
RETURN DIVIDE(Sales_2k18,All_2018,0)

Change = [Share 2018]-[Share 2017]

 

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.

Top Solution Authors