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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
DaxAmateur
Frequent Visitor

Measuring Store Hours with no Customers

Hi,

 

I have created a matrix visual with hours (hour field) on rows and days of week (day field) on columns that measures customer traffic for a given hour and day. I noticed that some combinations of hour and day there are no customers. How can I create a measure to determine the number of hours in a week without customers?

3 REPLIES 3
v-yulgu-msft
Microsoft Employee
Microsoft Employee

Hi @DaxAmateur,

 

Maybe you can add 0 with current measure, similar to:

Final measure=[measures customer traffic]+0

 

Best regards,

Yuliana Gu

Community Support Team _ Yuliana Gu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Seward12533
Solution Sage
Solution Sage

 
Seward12533
Solution Sage
Solution Sage

Can you share example of your dataset, measures and visuals?

If you just need a total should be easy to have a total number of hours and then subtract the hours with customers.

One way would be to use a date time table filtered by open hours and count rows see this thread for a discussion on how to build one to do that. https://community.powerbi.com/t5/Desktop/Efficient-Date-Time-Table-Creation-Using-DAX/td-p/466987 But there may be more elegant solutions.

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.