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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
Anonymous
Not applicable

Hiding rows with blank or 0 data

Hi all.

I am attempting to hide blanks when there is no data for a table value:

 
Value YTD hide = CALCULATE('Month_Dataset'[Total MTD Value],CALCULATETABLE(DATESYTD('DIM_Date'[Date],'DIM_Date'[Value YTD hide]=TRUE)))
 
I created a column in the date table that gives a true/false indicator if the date is greater than today's date:
DatesWithValues = 'DIM_Date'[End of Month]<=MAX(Month_Dataset[Month End Date])
 
This is working but when I try to hide data that has $0 value, I get the following error:
Only constant date value is allowed as a year end date argument.
Any ideas on fixing this?
Heather
 
1 REPLY 1
DataInsights
Super User
Super User

@Anonymous,

 

Would you be able to provide example data and the desired result? Blanks returned by a measure are suppressed by default. To suppress zeros, you could convert zero to blank (resulting in zero and blank being suppressed):

 

Measure =
IF ( [Total MTD Value] = 0, BLANK (), [Total MTD Value] )

 

 





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

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.