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
gio1082
Helper I
Helper I

create slice

Hello,

 

I have this table and I would like to create a slicer for an average of LAR . So if  the average LAR is "greater than 96%" and "less than 96%"

gio1082_0-1596742178026.png

Thank you. 

1 ACCEPTED SOLUTION

Hi @gio1082 ,

Based on your desricption, I have defined the [Average of LAR] as a measure in my sample file like this:

Average = AVERAGE('Table'[Average of LAR])

Modified the previous measure:

Measure = 
IF (
    NOT ( ISFILTERED ( 'Slicer table'[LAR slicer] ) ),
    1,
    IF (
        SELECTEDVALUE ( 'Slicer table'[LAR slicer] ) = "greater than 96%",
        IF ( [Average] > 0.96, 1 ),
        IF (
            SELECTEDVALUE ( 'Slicer table'[LAR slicer] ) = "less than 96%",
            IF ( [Average] < 0.96, 1 )
        )
    )
)

re.png

Refer the sample file: Create a slicer.pbix 

 

Best Regards,
Yingjie Li

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

Hi @gio1082 ,

1. Create this table manually first:

sclier.png

2. Create a measure like this, put it in the visual table and set its vallue as 1:

Measure = 
IF (
    SELECTEDVALUE ( 'Slicer table'[LAR slicer] ) = "greater than 96%",
    IF ( SELECTEDVALUE ( 'Table'[Average of LAR] ) > 0.96, 1 ),
    IF (
        SELECTEDVALUE ( 'Slicer table'[LAR slicer] ) = "less than 96%",
        IF ( SELECTEDVALUE ( 'Table'[Average of LAR] ) < 0.96, 1 )
    )
)

measure.png

Attached sample file that hopes to help you: create a slicer.pbix

 

Best Regards,
Yingjie Li

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

Hi, 

 

Sorry, for late response, this definitely what want but it not working for me. I think is because the average of LAR is metric. 

So I have some products and a supplier who is responsible for that product. So Average LAR is a metric of the LAR to get the average for the supplier base on the products

 

thanks 

 

Hi @gio1082 ,

Based on your desricption, I have defined the [Average of LAR] as a measure in my sample file like this:

Average = AVERAGE('Table'[Average of LAR])

Modified the previous measure:

Measure = 
IF (
    NOT ( ISFILTERED ( 'Slicer table'[LAR slicer] ) ),
    1,
    IF (
        SELECTEDVALUE ( 'Slicer table'[LAR slicer] ) = "greater than 96%",
        IF ( [Average] > 0.96, 1 ),
        IF (
            SELECTEDVALUE ( 'Slicer table'[LAR slicer] ) = "less than 96%",
            IF ( [Average] < 0.96, 1 )
        )
    )
)

re.png

Refer the sample file: Create a slicer.pbix 

 

Best Regards,
Yingjie Li

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

 

Greg_Deckler
Community Champion
Community Champion

@gio1082 - Complex selector - https://community.powerbi.com/t5/Quick-Measures-Gallery/The-Complex-Selector/m-p/1116633#M534



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...

Helpful resources

Announcements
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!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

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