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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Anonymous
Not applicable

Line chart, count of occurances within a day. How to display zeros?

Hi there.

im creating a line chart with date hierarchy on axis -> year, month, day

 

on axis y there is count of ID's of events. There are some days without an event. I would like to display them as well. For now i get connected line and it seems like there was 1 event for days where actually there is no data. btw. i have the date table outside of my fact table with everyday of a year

1 ACCEPTED SOLUTION
Anonymous
Not applicable

I found solution myself. Created Measure:

 

COUNT(table[ID]) + 0
 
so now power bi knows that null is 0 for me.
cheers

View solution in original post

5 REPLIES 5
Anonymous
Not applicable

I found solution myself. Created Measure:

 

COUNT(table[ID]) + 0
 
so now power bi knows that null is 0 for me.
cheers

Hi @Anonymous ,

 

Glad that you have solved the problem,so can you make the post as answered to close it?

 

 

Best Regards,
Kelly
Did I answer your question? Mark my post as a solution!
amitchandak
Super User
Super User

Refer if this option can help on date

ShowItemwithoutdata.JPG

Anonymous
Not applicable

unfortunately, no

Can you share sample data and sample output.

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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