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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
gilr1975
Helper I
Helper I

Need help to present data for specific ranges

Hello,

 

I have the following information: Employee Id, Salary, salary rank:

 

Emp.IdSalarySalary rank
100100050%
101120074%
102130080%
103135082%
104150091%

 

I would like to present employees information for several ranges of salary ranks:

0-50%

510-75%

75-85%

85% and more

 

1. To present on visualization chart:

Axis x - ranges of salary ranks

Axis y - number of emplyees

 

2. Each time I press on shart (e.g. on range 75-85%), I will see data in visualization table for only these employess.

In case of 75-85% I will get data only for 2 employess:

Emp.IdSalarySalary rank
102130080%
103135082%

 

I created a range table with MIN and MAX + some measures.

The main one is:

Count Rating =

IF(NOT(ISBLANK('Rating'[Rating_Salary])),

CALCULATE(

COUNT('compare to survey'[EmpId),

 FILTER('compare to survey', 'compare to survey'[rate]

< 'Rating'[MaxThreshold_rating]), FILTER('compare to survey', 'compare to survey'[rate] >= 'Rating'[MaxThreshold_rating])))

 

However, I receive information for all employess as following:

Emp.IdSalaryCount Rating
1001000 
1011200 
10213001
10313501
1041500 

 

How can I fix it?

5 REPLIES 5
v-xuding-msft
Community Support
Community Support

Hi @gilr1975 ,

 

I create a sample. Please check if it is what you want.

Measure =
CALCULATE (
    COUNT ( 'Table'[Emp.Id] ),
    FILTER (
        VALUES ( 'Table'[Salary rank] ),
        COUNTROWS (
            FILTER (
                Rating,
                'Table'[Salary rank] >= Rating[MinThreshold_rating]
                    && 'Table'[Salary rank] <= Rating[MaxThreshold_rating]
            )
        )
    )
)

1.PNG

Reference:

https://www.daxpatterns.com/dynamic-segmentation/ 

 

You could download my sample to have a try.

 

Best Regards,
Xue Ding
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Thank you very much.

 

You're welcome. I'm glad it works for you.😊

 

Best Regards,
Xue Ding
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
amitchandak
Super User
Super User

@gilr1975 , Not very clear to me.

Please check if these can help

https://www.daxpatterns.com/static-segmentation/

https://www.daxpatterns.com/dynamic-segmentation/

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Thanks a lot!

It helped me. It is exactly what I looked for.

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 2025 Power BI update to learn about new features.

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors