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

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.

Reply

Filtering Two Columns Simultaneously

Hi everyone, 

I am trying to achieve the following filter in my Matrix Table. 

I need to apply a filter to remove company which has 0 Contingency AND 0 Forecast at the same time. The resoult should be the table in gree below (it will remove company C from the list).

Column Concingency is a calculated measure

Column forecast is a sum of values from a column in another table 

JSIQUEIYYCENB_0-1701448171138.png

 

any help will be greatly apprecited... thanks! 

1 ACCEPTED SOLUTION
Ritaf1983
Super User
Super User

Hi @JSIQUEI-YYC-ENB 
You can create a measure flag like  
flag = if ([Contingency ]=0 && [Forecast] =0 ,1,0)

And use this flag as a filter on the matrix.

**If it is not 0 m but blanks the flag measure will be with isblank()

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

Regards,
Rita Fainshtein | Microsoft MVP
https://www.linkedin.com/in/rita-fainshtein/
Blog : https://www.madeiradata.com/profile/ritaf/profile

View solution in original post

3 REPLIES 3
Ritaf1983
Super User
Super User

Hi @JSIQUEI-YYC-ENB 
You can create a measure flag like  
flag = if ([Contingency ]=0 && [Forecast] =0 ,1,0)

And use this flag as a filter on the matrix.

**If it is not 0 m but blanks the flag measure will be with isblank()

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

Regards,
Rita Fainshtein | Microsoft MVP
https://www.linkedin.com/in/rita-fainshtein/
Blog : https://www.madeiradata.com/profile/ritaf/profile

Awesome! simple, but smart solution...! appreciatted. Thanks @Ritaf1983  

@JSIQUEI-YYC-ENB 
Glad to help 🙂

Regards,
Rita Fainshtein | Microsoft MVP
https://www.linkedin.com/in/rita-fainshtein/
Blog : https://www.madeiradata.com/profile/ritaf/profile

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! Prices go up Feb. 11th.

Jan25PBI_Carousel

Power BI Monthly Update - January 2025

Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.

Jan NL Carousel

Fabric Community Update - January 2025

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