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
rosscortb
Post Patron
Post Patron

Count by salary ranges

Hello,

Looking for way to count the number of employess between salary ranges. 

For example. 

Employess    Salary

2                   £10,000 - £19,000

20                 £20,000 - £29,000

 

Would I need to create a measure or through power query?

 

Follow up: Did some digging and seems like I need a summarize table, but not getting the correct figures plus the date slicer iseems to have no impact on the result returned.

 

Salary Range = SUMMARIZE(Headcount,Headcount[SAP],"20000-29000",CALCULATE(COUNT(Headcount[Annual Salary]),FILTER(Headcount,Headcount[Annual Salary] >= 20000 && Headcount[Annual Salary] <= 29000)))

 

Thanks
Ross

1 ACCEPTED SOLUTION
dax
Community Support
Community Support

Hi rosscortb,

You could refer to my sample to see whether this is what you want. If this is not what you want, please correct me.

 

Best Regards,
Zoe Zhi

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
dax
Community Support
Community Support

Hi rosscortb,

You could refer to my sample to see whether this is what you want. If this is not what you want, please correct me.

 

Best Regards,
Zoe Zhi

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.