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
m92240
Frequent Visitor

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

 

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

 

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
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.