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
alexandert
New Member

Filter R12 EBIT measure with master slicer table

In my example I have calculated a [R12 EBIT %] measure for a number of stores - returning a percentage ranging from -51% to +34%.

I would like to categorize these by a simple threshold table ([MasterSlicer]) looking something like this:

 

Label		Pct			Order
OK		0	         	1
Neutral		0,1			2
Good		0,17		        3

 

I can't seem to figure the correct way to do it. Any suggestions?

 

Thanks,

 

Alexander

1 ACCEPTED SOLUTION

Hi @alexandert,

 

Please use it as a measure. And "R12 EBIT %" is a measure that already exist.

 

 

Filter R12 EBIT measure with master slicer table.JPG 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Best Regards!

Dale

Community Support Team _ Dale
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
v-jiascu-msft
Employee
Employee

@alexandert

 

Hi Alexander,

 

If we can find out the max "Pct", we can find out the "Label". Maybe the measure looks like this:

Label_Measure =
VAR MaxPct =
    CALCULATE (
        MAX ( 'Table1'[Pct] ),
        FILTER ( 'Table1', Table1[Pct] <= [R12 EBIT %] )
    )
RETURN
    IF (
        ISBLANK ( MaxPct ),
        "NA",
        CALCULATE ( VALUES ( 'Table1'[Label] ), 'Table1'[Pct] = MaxPct )
    )

Best Regards!

Dale

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

Thanks Dale,

 

However, I get the "CALCULATE has been used in a True/False expression....." error message. Not sure what to do, ideas?

 

Thanks,

 

Alex

Hi @alexandert,

 

Please use it as a measure. And "R12 EBIT %" is a measure that already exist.

 

 

Filter R12 EBIT measure with master slicer table.JPG 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Best Regards!

Dale

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

Thanks, works like a charm!

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.