cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
fabnishi1207
Helper I
Helper I

Bottom 25% of Metric and bottom 25% of dimension

Hello,

 

I need to make Bottom 25% of a SalesAmount and Sales Person.

 

For example: I have 17 sales person in the total, and I need to know the 25% bottom performance of them.

 

I need two measures one for 25% of the sales and one 25% of the quantity of salesperson.

 

example: bottom 25% of sales metrics would take the bottom 25% sales values

bottom 25% of sales person would take the 25% of the total number of sales person

 

SalesPersonSales
Jon H11474
F Kenedy13103
William H13350
Annete Sol14382
Salman Ahmed16738
Zoran P17470
Carl Church24224
Martin Cartson25933
Leela Sharma26075
Winston Lo9500
Thomas Yu3500
Atul B2950
Rahseed L5000
Munashe5550
Nadarasj R3680
Ram Sharma1500
Ahdmed F3758

 

 

What's the best way to achieve this with dax? Thank you

 

 

 

1 ACCEPTED SOLUTION

Hi, @fabnishi1207 

Thank you for your feedback.

I have created an additional page that uses the second sample data.

Please kindly check the link down below.

 

https://www.dropbox.com/s/wy5ofq6iiy8pndv/fabnishi1207.pbix?dl=0 

 

Hi, My name is Jihwan Kim.

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.

View solution in original post

4 REPLIES 4
Jihwan_Kim
Solution Sage
Solution Sage

Hi, @fabnishi1207 

Please check the below picture and the sample pbix file's link down below, whether it is what you are looking for.

 

all measures are in the sample pbix file.

 

Picture4.png

 

https://www.dropbox.com/s/wy5ofq6iiy8pndv/fabnishi1207.pbix?dl=0 

 

 

Hi, My name is Jihwan Kim.

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.

Hi,

 

Your solution almost work

but in my real dataset I also have bunch of blank values (no sales) and negative values...

I also need to consider these two variables.

 

When I put the pareto ratio the it reaches 100% before the end of the bottom because of the negative values.

Please see below sample data with negatives and blanks. In this case we don't need to consider the blank values however we need to consider the negatives

 

SalesPerson Sales
Jon H 11474
F Kenedy 13103
William H 13350
Annete Sol 14382
Salman Ahmed 16738
Zoran P 17470
Carl Church 24224
Martin Cartson 25933
Leela Sharma 26075
Winston Lo 9500
Thomas Yu 3500
Atul B 2950
Rahseed L 5000
Munashe 5550
Nadarasj R 3680
Ram Sharma 1500
Ahdmed F 3758
harud f
Fabio F
Peter M
Simon F
Raquel A
Ban M
Glenda -1200
Smith K -750
Keith M -300
Tanya L -500
Simon A -400
Antonny B -3000

Hi, @fabnishi1207 

Thank you for your feedback.

I have created an additional page that uses the second sample data.

Please kindly check the link down below.

 

https://www.dropbox.com/s/wy5ofq6iiy8pndv/fabnishi1207.pbix?dl=0 

 

Hi, My name is Jihwan Kim.

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.

View solution in original post

amitchandak
Super User IV
Super User IV

Helpful resources

Announcements
PBI User Groups

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

April Update

Check it Out!

Click here to read more about the April 2021 Updates!

MBAS Carousel

Sign up for our May 4th event!

May the fourth be with you, join us online!

secondImage

The largest Power BI virtual conference

100+ sessions, 100+ speakers, Product managers, MVPs, and experts. All about Power BI. Attend online or watch the recordings.