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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
Anonymous
Not applicable

help with a dynamic segment to be created

Hello,

I need your help with a measure I have created which calculate a specific rate.

I would like to have a dynamic filter for which If I click (top left) on [0-20], I only have in the tab values below 20%. Same for [20-50]... 

I could not group the data due to the fact that I have a DAX measure...

Could you please help me ?

 

Tx staffing.png

1 ACCEPTED SOLUTION
Icey
Community Support
Community Support

Hi @Anonymous ,

 

Try to create a measure like below and replace your measure with it in the Matrix visual.

Measure =
SWITCH (
    SELECTEDVALUE ( 'YourTable'[Column1] ),
    "[0-20]", IF ( [YourMeasure] < 0.2, [YourMeasure] ),
    "[20-50]", IF ( [YourMeasure] < 0.5, [YourMeasure] ),
    [YourMeasure]
)

 

 

Best regards

Icey

 

If this post helps, then consider Accepting it as the solution to help other members find it faster.

View solution in original post

2 REPLIES 2
Icey
Community Support
Community Support

Hi @Anonymous ,

 

Try to create a measure like below and replace your measure with it in the Matrix visual.

Measure =
SWITCH (
    SELECTEDVALUE ( 'YourTable'[Column1] ),
    "[0-20]", IF ( [YourMeasure] < 0.2, [YourMeasure] ),
    "[20-50]", IF ( [YourMeasure] < 0.5, [YourMeasure] ),
    [YourMeasure]
)

 

 

Best regards

Icey

 

If this post helps, then consider Accepting it as the solution to help other members find it faster.

Portrek
Resolver III
Resolver III

Hi M92240

 

You can create a custon collum in your table with conditional related a value to yours paramters the filter, like:


custoncolumn = IF(tABLE1[COLUMN]<=20,"A",IF(tABLE1[COLUMN]<=60,"B","C"))

 

After, you put that collum in the filter.

 

See you.

Helpful resources

Announcements
July PBI25 Carousel

Power BI Monthly Update - July 2025

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

Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 community update carousel

Fabric Community Update - June 2025

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