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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
prabhatnath
Advocate III
Advocate III

Filter Report Data based on User Selection for YES - NO Value Based data

Hi Experts,

I have the below table loaded into Power BI and currently the report shows all visuals based on all rows in the Datasource.
I want to exclude the Vendor records from the report visuals so for now I have applied a Page level filter IsVendor = NO and it is all good.

Instead, I want to have a selection (Something like "Include Vendor Records") that is by default unselected and users can select if they want to include vendor data as well. Without Selection, the Report should show records where Isvendor = NO.

Having a Slicer visual on isVendor Field and shown as checkboxes will show YES and NO options and will work, but I think this will confuse users, so looking for having just one selection for Include Vendor Records.

Item NamePriceIsVendor
CPU7000NO
RAM3200NO
HDD2000NO
SSD4000NO
FAN500YES
CABINET1200YES
PSU800YES
GPU5000NO
COOLING200YES


Thanks,
Prabhat

1 ACCEPTED SOLUTION
v-shex-msft
Community Support
Community Support

Hi @prabhatnath,

You can try to use ISFILTERED function with if statement to package the original expression and use its status to redirect to different filter expressions.

ISFILTERED function (DAX) - DAX | Microsoft Learn

Regards,

Xiaoxin Sheng

Community Support Team _ Xiaoxin
If this post helps, please consider accept as solution to help other members find it more quickly.

View solution in original post

1 REPLY 1
v-shex-msft
Community Support
Community Support

Hi @prabhatnath,

You can try to use ISFILTERED function with if statement to package the original expression and use its status to redirect to different filter expressions.

ISFILTERED function (DAX) - DAX | Microsoft Learn

Regards,

Xiaoxin Sheng

Community Support Team _ Xiaoxin
If this post helps, please consider accept as solution to help other members find it more quickly.

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.