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

Breaking down into quartiles

Hi all, 

 

I am trying to create a Mesure which will return how many employees per month are in each quartile based on the Hourly rate. 

 

I have a CalendarTable and a Data Table linked with inactive interaction. 

 

On my Data table my data are linke : 

 

DATEIDhourly rate
01/01/202119.01
01/01/2021210.5
01/01/2021310.5
01/01/2021413.8
01/01/202158.95
01/01/2021620
01/01/2021716.37
01/01/2021815
01/01/2021912
01/01/2021109.01
01/02/202119.01
01/02/2021210.5
01/02/2021310.5
01/02/2021413.8
01/02/202158.95
01/02/2021620
01/02/2021716.37
01/02/2021815
01/02/2021912
01/02/2021109.01
01/03/2021110
01/03/2021211.2
01/03/2021311.2
01/03/2021417
01/03/2021510
01/03/2021611
01/03/2021718
01/03/2021817
01/03/2021913
01/03/20211012.52

 

So When I select JAN 2021 (the slicer is based in the calendar date) i'd like to get back 

Q13
Q22
Q33
Q42

 

How can i achive it ? 

1 ACCEPTED SOLUTION

Hi @Anonymous ,

I created a sample pbix file (see attachment), please check whether that is what you want.

yingyinr_0-1616143193926.png

Best Regards

Community Support Team _ Rena
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

4 REPLIES 4
amitchandak
Super User
Super User

@Anonymous , You need one or two date table, one of them should be an independent date table

 

when you select less and want to show more, then you need independent  tbale.

 

refer to this video: https://www.youtube.com/watch?v=duMSovyosXE

 

Anonymous
Not applicable

Hi @amitchandak

 

I managed to create a measure to get the each quartile value

 

Q1 = CALCULATE(PERCENTILE.INC(Remuneration[Ordinary (hour)], .25), ALL(Remuneration[Ordinary (hour)]),USERELATIONSHIP(_Calendar[DATE], Remuneration[DATE])) 

 

Now i am trying to count how many employees are below this figure. 

Hi @Anonymous ,

I created a sample pbix file (see attachment), please check whether that is what you want.

yingyinr_0-1616143193926.png

Best Regards

Community Support Team _ Rena
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Anonymous
Not applicable

It worked like a glove. 

 

thanks @v-yiruan-msft 

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.