Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!

Reply
Anonymous
Not applicable

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, @Anonymous 

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.

If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.


Go to My LinkedIn Page


View solution in original post

4 REPLIES 4
Jihwan_Kim
Super User
Super User

Hi, @Anonymous 

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.

If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.


Go to My LinkedIn Page


Anonymous
Not applicable

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, @Anonymous 

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.

If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.


Go to My LinkedIn Page


Helpful resources

Announcements
April AMA free

Microsoft Fabric AMA Livestream

Join us Tuesday, April 09, 9:00 – 10:00 AM PST for a live, expert-led Q&A session on all things Microsoft Fabric!

March Fabric Community Update

Fabric Community Update - March 2024

Find out what's new and trending in the Fabric Community.