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
amalrio
Helper V
Helper V

filter a graph visual by a measure

Hi Gurus, 

 

I have a requirement to filer a graph visual by a measure, filter need to be at the visual level of the graph, and measure is a selected value coming from the report pane.

 

How do I go about it

 

any help would be appriciated.

 

thanks a lot.

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @amalrio ,

What's your expected result? Which field of the table the slicer year plan is from? That is a default field in table or a a calculated column? If it is a calculated column, please provide the related formula. It will only display the data marked with red circle in table visual when select the option "2020 5 Year Plan" in the slicer?

yingyinr_1-1622698966211.png

In addition, please update the formula of your measure [Measured in Plan] as below(the part with red font is new added) and check whether it can get your expected result:

Measured in Plan =
VAR Inferred = [Inferred in Plan]
VAR Indicated = [Indicated in Plan]
VAR Total = 1 - Inferred - Indicated
VAR Result =
    DIVIDE (
        IF (
            Total = 0
                || ISBLANK ( Indicated )
                || ISBLANK ( Indicated ),
            BLANK (),
            Total
        ),
        1
    )
RETURN
    Result

Best Regards

View solution in original post

4 REPLIES 4
amalrio
Helper V
Helper V

Hi @amitchandak , 

 

Thanks for the reply, 

 

my issue is when I select 2021 5 Year Plan, it also picks the year 2017 (which does not include in that plan) similar to that when I select 2020 5 Year Plan (I get 2026, which should not)

amalrio_0-1622520450780.png

 

2020 (shows 2026, and should not)

 

amalrio_1-1622520504150.png

 

 

I know it is a long shot without seeing the datamodel. I recon it is to do with Measured In Plan measure, which is below 

Measured in Plan  =
VAR
Inferred = [Inferred in Plan] 
VAR
Indicated = [Indicated in Plan] 
VAR
Total = 1 - Inferred - Indicated  
VAR Result = DIVIDE ( IF ( Total = 0, BLANK (), Total ), 1 )  
 
RETURN
Result

 

Anonymous
Not applicable

Hi @amalrio ,

What's your expected result? Which field of the table the slicer year plan is from? That is a default field in table or a a calculated column? If it is a calculated column, please provide the related formula. It will only display the data marked with red circle in table visual when select the option "2020 5 Year Plan" in the slicer?

yingyinr_1-1622698966211.png

In addition, please update the formula of your measure [Measured in Plan] as below(the part with red font is new added) and check whether it can get your expected result:

Measured in Plan =
VAR Inferred = [Inferred in Plan]
VAR Indicated = [Indicated in Plan]
VAR Total = 1 - Inferred - Indicated
VAR Result =
    DIVIDE (
        IF (
            Total = 0
                || ISBLANK ( Indicated )
                || ISBLANK ( Indicated ),
            BLANK (),
            Total
        ),
        1
    )
RETURN
    Result

Best Regards

Thanks a lot Rena, when I check is blank my issues get sorted, my issue was when Infrred and indicated are blank Measured in Plan  should not show either.

amitchandak
Super User
Super User

@amalrio , if you need a slicer on a measure, you need dynamic segmentation.

refer my video or blog

 

Dynamic Segmentation Bucketing Binning
https://community.powerbi.com/t5/Quick-Measures-Gallery/Dynamic-Segmentation-Bucketing-Binning/m-p/1...

Dynamic Segmentation, Bucketing or Binning: https://youtu.be/CuczXPj0N-k

 

 

Other option is visual level filter

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

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
Top Kudoed Authors