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
third_hicana
Helper IV
Helper IV

Filtering Rows with no value in multiple columns

Hi. May I ask your help please how to create the DAX of my scenario.

 

In the table visual, I want only to show Project T and Y because they have no values from Q1 to Entire Duration columns. So If I use the Department Manager slicer and select DM1 , I want to show only Project T and Y.

 

third_hicana_1-1709119477638.png

 

Columns 'ID' and 'BOP Title' is in another table, then 'Department column up to 'Entire Duration' is also another table in my data model. The BOP ID column was used to create relationship for the two tables. 

 

Thank you for your help

 

Thanks,

Third

 

 

2 REPLIES 2
Anonymous
Not applicable

Hi @third_hicana 

 

You can filter out the relevant blank columns in the filter before using the slicer.

 

 

 

Best Regards,

Jayleny

123abc
Community Champion
Community Champion

To achieve the desired filtering in your scenario, you can create a calculated column or measure in your data model using DAX. If you want to filter rows where there are no values from Q1 to Entire Duration columns for each project, you can create a measure that checks if all these columns are blank for a particular project. Here's how you can create such a measure:

 

ShowProject =
IF (
ISBLANK ( 'YourTable'[Q1] )
&& ISBLANK ( 'YourTable'[Q2] )
&& ISBLANK ( 'YourTable'[Q3] )
&& ISBLANK ( 'YourTable'[Q4] )
&& ISBLANK ( 'YourTable'[Entire Duration] ),
"Show",
BLANK ()
)

 

This measure evaluates if all the specified columns (Q1 to Entire Duration) are blank for each row. If they are all blank, it returns "Show"; otherwise, it returns blank.

After creating this measure, you can use it as a filter in your table visual. Drag the ShowProject measure into the visual level filters of your table visual, and filter for rows where the measure is equal to "Show". This will display only those projects where the conditions are met (i.e., where there are no values from Q1 to Entire Duration).

Additionally, if you want to further filter the projects based on the Department Manager slicer selection (e.g., DM1), you can adjust the measure accordingly by incorporating the logic related to the Department Manager slicer selection. You would need to consider the relationship between your tables and how the slicer interacts with your data model.

Remember to replace 'YourTable' with the actual name of your table, and adjust column names as per your data model.

 

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

 

In case there is still a problem, please feel free and explain your issue in detail, It will be my pleasure to assist you in any way I can.

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.