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

Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM. Register now.

Reply
newpbiuser01
Helper V
Helper V

Dynamically Filter Visual

Hello,

 

I have a report with a slicer, and I'd like to dynamically filter the visuals based on the dropdown value selected. So as an example, my table looks like the following:

IDVendorStatusCostDate
123ABCActive1010/02/2020
232BCDDeleted2023/04/2021
434CDEPending1030/11/2019
545DEFDraft209/09/2019
123EFGActive3010/05/2020
434FGHApproval4001/01/2021
123GHIDraft3102/06/2021

 

For my Status filter/slicer, I have the following options:

Active
All
Pending
Valid

 

In my report, I have a bar chart and a table visual below that. I'd like to filter the visuals as follows:

1. Active - show all except deleted, draft or pending

2. Valid - all except deleted

3. All - not draft

4. Pending - pending

 

I can't use the summarize function the table visual is not a summary table but a drilldown view. Does anyone know how I can do this? I'd really appreciate any help! 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi  @newpbiuser01 ,

 

 

Here are the steps you can follow:

1. Enter data -- TABLE.

vyangliumsft_0-1676264978600.png

2. Create measure.

Flag =
var _select=SELECTEDVALUE('Slicer_Table'[Slicer])
return
SWITCH(
    TRUE(),
    _select ="Active"&& NOT(MAX('Table'[Status])) in {"Deleted","Draft","Pending"},1,
    _select ="Valid"&& MAX('Table'[Status]) <> "Deleted",1,
    _select ="All"&& MAX('Table'[Status]) <> "Draft",1,
   _select ="Pending"&& MAX('Table'[Status]) = "Pending",1,0)

3. Place [Flag]in Filters, set is=1, apply filter.

vyangliumsft_1-1676264978601.png

4. Result:

vyangliumsft_2-1676264978605.png

 

Best Regards,

Liu Yang

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

2 REPLIES 2
Anonymous
Not applicable

Hi  @newpbiuser01 ,

 

 

Here are the steps you can follow:

1. Enter data -- TABLE.

vyangliumsft_0-1676264978600.png

2. Create measure.

Flag =
var _select=SELECTEDVALUE('Slicer_Table'[Slicer])
return
SWITCH(
    TRUE(),
    _select ="Active"&& NOT(MAX('Table'[Status])) in {"Deleted","Draft","Pending"},1,
    _select ="Valid"&& MAX('Table'[Status]) <> "Deleted",1,
    _select ="All"&& MAX('Table'[Status]) <> "Draft",1,
   _select ="Pending"&& MAX('Table'[Status]) = "Pending",1,0)

3. Place [Flag]in Filters, set is=1, apply filter.

vyangliumsft_1-1676264978601.png

4. Result:

vyangliumsft_2-1676264978605.png

 

Best Regards,

Liu Yang

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

Thanks @Anonymous! 

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.