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

Measure to show Zero giving a blank month and quarter

Hi there,

 

Primary Zeros = COUNTA('Reach and Engage All Rows'[Primary])+0
 
I used this measure to show the fields with zero. It works but it added a new blank month to the left of January. It also does this for years and quarters although I have filtered to remove blank dates.
 
Screen Shot 2022-07-21 at 11.37.38 AM.png
 
 
1 ACCEPTED SOLUTION
v-easonf-msft
Community Support
Community Support

Hi, @quayg 

This may be because the dates of the date column are not consecutive. It is recommended to create a calendar table containing consecutive dates and create measures based on that calendar table.

You can also hide that blank column by shortening the column width to zero(need to turn off option 'word wrap').

Best Regards,
Community Support Team _ Eason

View solution in original post

7 REPLIES 7
v-easonf-msft
Community Support
Community Support

Hi, @quayg 

This may be because the dates of the date column are not consecutive. It is recommended to create a calendar table containing consecutive dates and create measures based on that calendar table.

You can also hide that blank column by shortening the column width to zero(need to turn off option 'word wrap').

Best Regards,
Community Support Team _ Eason

parry2k
Super User
Super User

do you have a blank date in the table?






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

Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.





quayg
Frequent Visitor

There are no blank dates. I have filtered them all out.

parry2k
Super User
Super User

@quayg my question is which table you are using for the date? Do you have a separate dimension?






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

Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.





quayg
Frequent Visitor

It is the same table. Just counting the rows and grouping them by month.

parry2k
Super User
Super User

@quayg do have a calendar table that is connected to your transaction table, and you are using the month from the calendar table? What does your model look like?

 

 

Follow us on LinkedIn and YouTube.gif to our YouTube channel

I would  Kudos if my solution helped. 👉 If you can spend time posting the question, you can also make effort to give Kudos to whoever helped to solve your problem. It is a token of appreciation!

 

Visit us at https://perytus.com, your one-stop shop for Power BI-related projects/training/consultancy.

 






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

Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.





quayg
Frequent Visitor

Hello,

 

Thanks for taking the time to help. It's counting all of the instances within a date range. I'm using the date hierarchy to group the results by month.

 

quayg_0-1658422326155.png

quayg_1-1658422342606.png

 

Helpful resources

Announcements
Carousel_PBI_Wave1

2023 Release Wave 1 Plans

Power BI release plans for 2023 release wave 1 describes all new features releasing from April 2023 through September 2023.

Power BI Summit Carousel 2

Global Power BI Training

Make sure you register today for the Power BI Summit 2023. Don't miss all of the great sessions and speakers!

Thank you 2022 Review

2022 Monthly Feature Releases

We had a great 2022 with a ton of feature releases to help you drive a data culture.