cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Wolski
Frequent Visitor

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

Accepted Solutions
Wolski
Frequent Visitor

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

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
Super User IV
Super User IV

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

Refer if this option can help on date

ShowItemwithoutdata.JPG





Did I answer your question? Mark my post as a solution! Appreciate your Kudos!!
In case it does not help, please provide additional information and mark me with @
My Recent Blogs -Decoding Direct Query - Time Intelligence, Winner Coloring on MAP,
HR Analytics, Power BI Working with Non-Standard TimeAnd Comparing Data Across Date Ranges
Proud to be a Super User! Linkedin


Wolski
Frequent Visitor

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

unfortunately, no

Super User IV
Super User IV

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

Can you share sample data and sample output.





Did I answer your question? Mark my post as a solution! Appreciate your Kudos!!
In case it does not help, please provide additional information and mark me with @
My Recent Blogs -Decoding Direct Query - Time Intelligence, Winner Coloring on MAP,
HR Analytics, Power BI Working with Non-Standard TimeAnd Comparing Data Across Date Ranges
Proud to be a Super User! Linkedin


Wolski
Frequent Visitor

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

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

Microsoft v-kelly-msft
Microsoft

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

Hi @Wolski ,

 

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!

Helpful resources

Announcements
New Ranks Launched March 24th!

New Ranks Launched March 24th!

The time has come: We are finally able to share more details on the brand-new ranks coming to the Power BI Community!

‘Better Together’ Contest Finalists Announced!

‘Better Together’ Contest Finalists Announced!

Congrats to the finalists of our ‘Better Together’-themed T-shirt design contest! Click for the top entries.

Arun 'Triple A' Event Video, Q&A, and Slides

Arun 'Triple A' Event Video, Q&A, and Slides

Missed the Arun 'Triple A' event or want to revisit it? We've got you covered! Check out the video, Q&A, and slides now.

Community Summit North America

Community Summit North America

Innovate, Collaborate, Grow. The top training and networking event across the globe for Microsoft Business Applications

Top Solution Authors
Top Kudoed Authors