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?



Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!

Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo

If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤


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?



Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!

Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo

If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤


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.

 



Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!

Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo

If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤


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
Join Arun Ulag at MPPC23

Join Arun Ulag at MPPC23

Get a sneak peek into this year's Power Platform Conference Keynote.

PBI Sept Update Carousel

Power BI September 2023 Update

Take a look at the September 2023 Power BI update to learn more.

Learn Live

Learn Live: Event Series

Join Microsoft Reactor and learn from developers.

Dashboard in a day with date

Exclusive opportunity for Women!

Join us for a free, hands-on Microsoft workshop led by women trainers for women where you will learn how to build a Dashboard in a Day!

Top Solution Authors