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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends September 15. Request your voucher.

Reply
Anonymous
Not applicable

How to filter out row when certain values are blank

I have a massive table (requirement sadly) with values ranging from each month of the year, and measures calculating totals etc. and most importantly, measures showing totals for Previous Years, and for Future Years. This is where I'm having an "issue". 

 

Currently, when I select, let's say 2022, I can see values throughout jan-dec 2022, and nothing in 2023, because that project is only for 2022. This is fine. But, when I then select 2023, the entire row is blank, except for the Previous Year column, which then shows the total of 2022. 

Is it possible to somehow make a filter that specifies that if jan-dec columns are blank, don't show anything from this row, I.E filter this away? Even though we have values in the row, (for Previous Year, Future Year etc.)

 

Sorry if this was confusing

2 REPLIES 2
menglaro78
Microsoft Employee
Microsoft Employee

Hi @Anonymous 

When constructing the measure to calculate the previous year, you introduce a test condition.
If Measure Current Year is blank then blank else Measure.

 

Marco

Anonymous
Not applicable

@menglaro78 

Thanks for the reply, but I think there's a misunderstanding.

It's usually the other way around meaning most of the time there is a value for Previous Year or Future Year, but rest is blank. And in that case we want Previous Year and Future Year to not show. I.E filter out the whole row

 

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

Check out the August 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

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