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

The FabCon + SQLCon recap series starts April 14th at 8am Pacific. If you’re tracking where AI is going inside Fabric, this first session is a can't miss. Register now

Reply
Syndicate_Admin
Administrator
Administrator

How can I make it take only the values that are not null?

I am measuring productivity and I have the units manufactured for each worker for each date, for which I create a graph that shows me the average productivity, and a letter that shows me the average of all workers.

foto bi.JPG

The issue is that it is not the real value for March since it takes into account dates in which it was not worked (examples Sunday and some Saturdays)

average average productivity per day = [average productivity day]/DISTINCTCOUNT('list of employees'[id])
average productivity day = SUM(Sheet1[Units])/(DISTINCTCOUNT(Sheet1[Date].[Day]))
It works well for me if in the filter I choose day by day, knowing the days that were worked but I need to select several months and calculate myself based on all the days that is not null / white
1 ACCEPTED SOLUTION
v-kkf-msft
Community Support
Community Support

Hi @Syndicate_Admin ,

 

Please try the following formula:

 

average productivity day = 
SUM ( Sheet1[Units] ) / CALCULATE ( DISTINCTCOUNT ( Sheet1[Date] ), Sheet1[Units] <> BLANK () ) 

vkkfmsft_0-1650333148316.png

 

If the problem is still not resolved, please provide detailed error information or the expected result you expect. Let me know immediately, looking forward to your reply.
Best Regards,
Winniz
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

2 REPLIES 2
v-kkf-msft
Community Support
Community Support

Hi @Syndicate_Admin ,

 

Please try the following formula:

 

average productivity day = 
SUM ( Sheet1[Units] ) / CALCULATE ( DISTINCTCOUNT ( Sheet1[Date] ), Sheet1[Units] <> BLANK () ) 

vkkfmsft_0-1650333148316.png

 

If the problem is still not resolved, please provide detailed error information or the expected result you expect. Let me know immediately, looking forward to your reply.
Best Regards,
Winniz
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Syndicate_Admin
Administrator
Administrator

I tried to create a new measurement with DISTINCTCOUNTNONULL(date) but I need you to use the date filter of the photo.

Is there a way to use a "slicer" as a filter for a measurement?

Helpful resources

Announcements
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

Check out the March 2026 Power BI update to learn about new features.