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 August 31st. Request your voucher.

Reply
Anonymous
Not applicable

How to efface blank category row without affecting TOTAL

I have created a calculated column with DATESINPERIOD to always show the last 7 days of my report and connected it to my 'Dates' table.
When I apply the measure to the new table, I get a top row with a blank category but with a large number.
So I use HASONEVALUE to eliminate the top row but I end up eliminating the Total as well.

Is there another way to do it without affecting the Total?

 

HASONEVALUE impacts totalHASONEVALUE impacts total

 

 

wrongwrong

 

 

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@Anonymous , Try isinscope, it can check if the date is in visual scope or not. for Grand Total Date will not be scope

 

if(not(isinscope(Date[Date])), [Measure], <Your code with has one value>)

 

Also, a blank value in date means, your date table is missing dates. or your date in fact has a time stamp.

 

You can also try visual level filter

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

View solution in original post

2 REPLIES 2
amitchandak
Super User
Super User

@Anonymous , Try isinscope, it can check if the date is in visual scope or not. for Grand Total Date will not be scope

 

if(not(isinscope(Date[Date])), [Measure], <Your code with has one value>)

 

Also, a blank value in date means, your date table is missing dates. or your date in fact has a time stamp.

 

You can also try visual level filter

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube
Anonymous
Not applicable

"Also, a blank value in date means, your date table is missing dates. or your date in fact has a time stamp."

So creating a calculated date table with the last 7 days seems to be bad practice.

So what's the best way to always show the last 7 days as I update the report?

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

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