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

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

Reply
aplask105
Frequent Visitor

Replace Null Values with 0 across Week Dimension

Hello all - 

 

I have a Week Dimension table (dim_week_end) and an Activity fact table (fact_activity).

 

I am attepting to create an average activity calculation over a 4 week period based on a count(distinct) of activity records for each respective employee. 

 

I've been able to create the following: 

aplask105_0-1674673577749.png

The result suffices, however I can not figure out how to count 0s where there is no Activity record for a given week. My research has led me to try adding '+0' after the DistinctCount() calc, but that compromises my week_end range (If I have 4 weeks filterd, all weeks from the data set will show in the matrix). 

 
aplask105_0-1674673431932.png

So for the above, the average would be 3.5

0 REPLIES 0

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

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

Top Solution Authors