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

A new Data Days event is coming soon! This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. Don't miss out.

Reply
gianmarco
Helper IV
Helper IV

Advanced filter

Dear All,

I can slice a table for the following row values: 0 1 2 3

 

What I want to achieve is a slicer where I can filter for the following options: 0 & 1, 0 & 2, 0 & 3.

 

In other words, you can slice for 1, 2 & 3 only but when you do you always slice for 0 as well.

 

Thank you very much

gianmarco

2 REPLIES 2
Ahmedx
Super User
Super User

Is this what you are looking for?

total = 
VAR _Valueselect =VALUES('Table'[Value])
VAR _SUM =CALCULATE([sales],FILTER(ALL('Table'),'Table'[Value] in _Valueselect))
VAR _SUMSERO = CALCULATE([sales],FILTER(ALL('Table'),'Table'[Value]=0))
VAR _Rsults = IF({0} in _Valueselect,_SUM,_SUM+_SUMSERO)
RETURN
_Rsults

Dear Ahmedx, not really.

Maybe it's less complicated than this.
Consider I want to filter a table by 4 clients: A, B, C & D.

 

When i filter for Client A, I want to obtain results as I would be filtering for A and D.

When i filter for Client B, I want to obtain results as I would be filtering for B and D

When i filter for Client C, I want to obtain results as I would be filtering for C and D.

Helpful resources

Announcements
May Power BI Update Carousel

Power BI Monthly Update - May 2026

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

Fabric SQL PBI Data Days

Data Days 2026 coming soon!

Sign up to receive a private message when registration opens and key events begin.

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.