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

Next up in the FabCon + SQLCon recap series: The roadmap for Microsoft SQL and Maximizing Developer experiences in Fabric. All sessions are available on-demand after the live show. Register now

Reply
gianmarco
Helper IV
Helper IV

Measure or custom column?

Dear All,

I have a table which filters by the following values:

null
x
z

 

What I want to achieve is a filter which incorporates only the "x" and "y" options, but when you filter for "x" you also filter the table for "null" value. In other words:

nowdesired
nullx
xx
zz

 

Any suggestion?

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @gianmarco 

You can refer to the following suggestion

Sample data

vxinruzhumsft_0-1690253858605.png

 

Slicer data 

vxinruzhumsft_1-1690253871177.png

 

You can create a measure

Measure = IF(ISFILTERED('Table (2)'[Column1]),IF("X" in VALUES('Table (2)'[Column1]),CALCULATE(SUM('Table'[Value]),FILTER('Table',OR('Table'[Type] in VALUES('Table (2)'[Column1]),[Type]=""))),CALCULATE(SUM('Table'[Value]),FILTER('Table','Table'[Type] in VALUES('Table (2)'[Column1])))),SUM('Table'[Value]))

Output

vxinruzhumsft_2-1690253953725.png

 

vxinruzhumsft_3-1690253960238.png

 

Best Regards!

Yolo Zhu

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

3 REPLIES 3
amitchandak
Super User
Super User

@gianmarco , Create a measure and add visual or visual level filter

 

countrows(filter(Table, not(isblank(Table[Column])) ))

 

Column is column having those three values

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

Dear @amitchandak,

maybe I wasn't clear..

 

I can slice a table for the following row values:

1) null

2) x

3) z

 

What I want to achieve is a slicer where I can filter for the following options:

1) x & null

2) z

 

In other words, you can slice for x and z only but when you slice for x you slice for null as well.

 

Thank you very much

gianmarco

Anonymous
Not applicable

Hi @gianmarco 

You can refer to the following suggestion

Sample data

vxinruzhumsft_0-1690253858605.png

 

Slicer data 

vxinruzhumsft_1-1690253871177.png

 

You can create a measure

Measure = IF(ISFILTERED('Table (2)'[Column1]),IF("X" in VALUES('Table (2)'[Column1]),CALCULATE(SUM('Table'[Value]),FILTER('Table',OR('Table'[Type] in VALUES('Table (2)'[Column1]),[Type]=""))),CALCULATE(SUM('Table'[Value]),FILTER('Table','Table'[Type] in VALUES('Table (2)'[Column1])))),SUM('Table'[Value]))

Output

vxinruzhumsft_2-1690253953725.png

 

vxinruzhumsft_3-1690253960238.png

 

Best Regards!

Yolo Zhu

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

Helpful resources

Announcements
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

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.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

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