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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

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
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.