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

A new Data Days event is coming soon! This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. Don't miss out.

Reply
Anonymous
Not applicable

Show blank as 0 in graph of Measure while applying Date filter to graph axis

Hi all,

 

I am running into an issue with a dashboard I created with graphs that show different Support Ticket metrics trends. Currently, the graphs are plotted using Measures that count Opened, Closed, Open issues based on a Date table, however an issue has been raised that when there are 0 issues raised on certain dates, there is a gap in the graph rather than the value 0.

 

Example measure (Combined_issues = main table holding all support tickets + details; Combined_issues_trend = Date table generated in PowerQuery with all Measures on trends):

Opened issues =
VAR tmpTickets = ADDCOLUMNS(Combined_issues,"Effective Date",IF(ISBLANK([dl_resolved]),"2100-01-01",[dl_resolved]))
VAR tmpTable =
SELECTCOLUMNS(
FILTER(
GENERATE(
tmpTickets,
'Combined_issues_trend'
),
[Date] = [dl_created].[Date]
),
"ID",[dl_key],
"Date",[Date].[Date]
)
VAR tmpTable1 = GROUPBY(tmpTable,[ID],"Count",COUNTX(CURRENTGROUP(),[Date]))
RETURN COUNTROWS(tmpTable1)

 

I have done some research, and tried to add a +0 on the end of my COUNTROWS() which solves the original problem and forces the value down to 0 on the axis when there are no issues. However, this causes the date slicer on the page to break. Specifically, the axis then starts at the beginning of the Date table (2015), and slicing by the Date field only forces all of the data to 0 on the axis up until the date slicer starts - see screenshot below:

 

3 REPLIES 3
Anonymous
Not applicable

Thank you @Greg_Deckler 

Apparently screenshots not available...

Capture.PNGCapture1.PNG

 

@Anonymous - All I can think of is doing this. This looks like a measure aggregation problem. See my blog article about that here: https://community.powerbi.com/t5/Community-Blog/Design-Pattern-Groups-and-Super-Groups/ba-p/138149

The pattern is:
MinScoreMeasure = MINX ( SUMMARIZE ( Table, Table[Group] , "Measure",[YourMeasure] ), [Measure])
MaxScoreMeasure = MAXX ( SUMMARIZE ( Table, Table[Group] , "Measure",[YourMeasure] ), [Measure])
AvgScoreMeasure = AVERAGEX ( SUMMARIZE ( Table, Table[Group] , "Measure",[YourMeasure] ), [Measure])
etc.

 

Now, you would need to build this into your measusre where you would add your final calculation to a summarized table within the measure. Then you would check if all rows less than the current row (max of your date within context) are 0 and if so, return blank. This would eliminate everything off of the front end but preserve the 0's in the middle of your data.



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...
Greg_Deckler
Community Champion
Community Champion

@Anonymous Not sure about the date slicer, can't see screen shot.



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...

Helpful resources

Announcements
May Power BI Update Carousel

Power BI Monthly Update - May 2026

Check out the May 2026 Power BI update to learn about new features.

Fabric SQL PBI Data Days

Data Days 2026 coming soon!

Sign up to receive a private message when registration opens and key events begin.

New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.