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

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

Reply
Dayna
Helper V
Helper V

Filter values based on static value

Hello,

 

I suspect this is a fairly easy one, but I'm struggling to work out whether the measure should be a CALCULATE(), SUMMARIZETABLE() or something else...!

 

Basically, I have a table with a list of component values, and I want to return the ones where a specific column equals a static value. On the below example, I'd like to bring back all ps_comp records where the field "sub_assembly_inc_lotion" equals "Yes".

 

Can someone advise, please?

 

Parentps_compsub_assembly_inc_lotion
LQ20303X039041No
LQ20303X039045No
LQ20303X039046No
LQ20303X039048No
LQ20303X03LQ20303X03_F08Yes
LQ20303X03LQ20303X03_G01Yes
LQ20303X03LQ20303X03_G03Yes
1 ACCEPTED SOLUTION

I refactored my tables and relationships to achieve it on a data level rather than within PowerBI. 

View solution in original post

5 REPLIES 5
Dayna
Helper V
Helper V

My original use case was to use the value within the table alongside with other records, so I wasn't convinced that a visual filter would work... I'll see if I can change my approach a little, and perhaps link the charts to bookmarks to show different filtered views of the data based on the bookmark selected.

 

Thanks for the responses all, very much appreciate this forum!

Anonymous
Not applicable

Hi @Dayna ,

Did you get a proper approach for your problem? If yes, could you please share it with us if it is convenient? Thank you.

Best Regards

I refactored my tables and relationships to achieve it on a data level rather than within PowerBI. 

luohen
Resolver II
Resolver II

Hi  @Dayna ,

If you still want the records where the field "sub_assembly_inc_lotion" equals "No" exist in the source query,  you can follow the suggestion from  to create a table visual and apply a visual-level filter with the condition (sub_assembly_inc_lotion is "Yes") on the table visual just as below screenshot.

vlfilter.png

And if you just want to keep the records where the field "sub_assembly_inc_lotion" equals "Yes" in Query Editor by using Filter function, you can handle with it in Power Query Editor.

pq filter.jpg

Best Regards

lbendlin
Super User
Super User

A standard visual level filter should do that for you. Have you tried that?

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

Find out what's new and trending in the Fabric community.