cancel
Showing results for 
Search instead for 
Did you mean: 
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.

View solution in original post

Helpful resources

Announcements
PBI_User Group Leader_768x460.jpg

Manage your user group events

Check out the News & Announcements to learn more.

Get Ready for Power BI Dev Camp

Microsoft named a Leader in The Forrester Wave

Microsoft received the highest score of any vendor in both the strategy and current offering categories.

Get Ready for Power BI Dev Camp

Power BI Dev Camp - September 30th, 2021

Mark your calendars and join us for our next Power BI Dev Camp!

PowerPlatform 768x460.png

Microsoft Learn

Check out our new Discover Your Career Path blog post series and get all the details.

Top Solution Authors