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
lwklwk98
Helper I
Helper I

Customer Revenue - Splitting into 10 Quartile

Hello,

 

I have a mock dataset here:

CompanyType of GoodsQtyProfit ($)Avg Selling Price ($)
A11012012
B12020010
E310909
C1402807
A2403208
E3201206
A1301806
C11011011
C32022011

 

There are a total of more than 2000 entries with over 100+ different companies. 

I would like to create a visualization that is able to capture the % proportion of the total profit in 10 quartiles of an equal number of distinct customers. I am not sure if I should create a table or measure that adds up the sum of all profits for each company.

 

I'm thinking of doing a bar chart with each bar representing a certain % and all will add up to give me 100%.

 

I really appreciate it if there is a better way to visualize this. Thank you for your help.

 

1 ACCEPTED SOLUTION
v-robertq-msft
Community Support
Community Support

Hi, @lwklwk98 

According to your description and sample data, I can roughly understand your requirement, I think you can try this measure to achieve this:

Percent of total =

var _total=SUMX(ALL('Table'),[Profit ($)])

var _profit=CALCULATE(SUM('Table'[Profit ($)]),FILTER(ALL('Table'),[Company]=MAX('Table'[Company])))

return

DIVIDE(_profit,_total)

Then you can change the measure format like this:

vrobertqmsft_0-1623897195621.png

 

Then you can create a clustered column chart to place the fields like this:

vrobertqmsft_1-1623897195626.png

 

And you can get what you want.

You can download my test pbix file below

Thank you very much!

 

Best Regards,

Community Support Team _Robert Qin

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

1 REPLY 1
v-robertq-msft
Community Support
Community Support

Hi, @lwklwk98 

According to your description and sample data, I can roughly understand your requirement, I think you can try this measure to achieve this:

Percent of total =

var _total=SUMX(ALL('Table'),[Profit ($)])

var _profit=CALCULATE(SUM('Table'[Profit ($)]),FILTER(ALL('Table'),[Company]=MAX('Table'[Company])))

return

DIVIDE(_profit,_total)

Then you can change the measure format like this:

vrobertqmsft_0-1623897195621.png

 

Then you can create a clustered column chart to place the fields like this:

vrobertqmsft_1-1623897195626.png

 

And you can get what you want.

You can download my test pbix file below

Thank you very much!

 

Best Regards,

Community Support Team _Robert Qin

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

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