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

July 28 - August 9 | Final Round of the Power BI Dataviz World Championships. This is your chance. Learn more

Reply
MStP
Helper I
Helper I

Visual-Level Filter Measure with Conditional Filter

Hello All,

 

Please see the link for the sample data file below.

 

I want to create a measure that acts as a visual level filter to include the following rows:

 

PO Cat = K or P

or

PO Cat = Blank, and PR Cat is K or P

 

In the sample data, the desired result is that the filter excludes PO1003.

 

https://drive.google.com/file/d/1XOp8YVIYCD71NXyVb3Oe_2lRT7FXUWgl/view?usp=sharing

 

It would also be useful to get the formula as if the PR Cat and PO Cat were in two different tables.

 

Please let me know if you need additional information.

 

Michael

1 ACCEPTED SOLUTION

I don't know, I'm new at this. I guess the calculated column would deliver a combined value that I could filter in the visual? So the values would be whatever is in PO Cat + PR Cat and anything that's blank would be filtered out? This sounds reasonable to me. I used this expression and filtered out any blanks. I think this will work for me.

 

Acct Assignment Combine = COMBINEVALUES( ", ", ZQV_ME5A_ATC[AcctAssignmentCat], ZQV_ME5A_ATC[ZQV_ME2N_ATC.AcctAssignmentCat])

 

Michael

View solution in original post

2 REPLIES 2
lbendlin
Super User
Super User

Please explain why this would need to be a measure.  A calculated column seems sufficient.

I don't know, I'm new at this. I guess the calculated column would deliver a combined value that I could filter in the visual? So the values would be whatever is in PO Cat + PR Cat and anything that's blank would be filtered out? This sounds reasonable to me. I used this expression and filtered out any blanks. I think this will work for me.

 

Acct Assignment Combine = COMBINEVALUES( ", ", ZQV_ME5A_ATC[AcctAssignmentCat], ZQV_ME5A_ATC[ZQV_ME2N_ATC.AcctAssignmentCat])

 

Michael

Helpful resources

Announcements
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

Fabric Community Sticker Design Challenge Barcelona Carousel

Fabric Community Sticker Challenge - Barcelona 2026

If you love stickers, then you will definitely want to check out our community sticker challenge, Barcelona edition!

July Power BI Update Carousel

Power BI Monthly Update - July 2026

Check out the July 2026 Power BI update to learn about new features.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Top Solution Authors