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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
ss89
Helper II
Helper II

Countrows

Hello Community,

 

I have 2 issues with the calculation of "ALL Closed" Column:

 

1. Column "ALL Closed"  also counts empty rows. How can I exclude the empty cells from "closed_dt" column in the formula?

ss89_3-1679403483749.png

ss89_2-1679402805357.png

2. Month 1 (January 2023) does not count activities closed in December 2022

How can I correct in the formula?

ss89_4-1679403704124.png

ss89_5-1679403731176.png

 

Thanks in advance for your support

 

 

 

9 REPLIES 9
ss89
Helper II
Helper II

 

Target_Date
sabato 4 marzo 2023
sabato 4 marzo 2023
mercoledì 29 marzo 2023
mercoledì 29 marzo 2023
giovedì 23 marzo 2023
giovedì 23 marzo 2023
domenica 19 marzo 2023
sabato 18 marzo 2023
venerdì 17 marzo 2023
venerdì 17 marzo 2023
giovedì 16 marzo 2023
giovedì 16 marzo 2023
domenica 12 marzo 2023
giovedì 9 marzo 2023
sabato 4 marzo 2023
mercoledì 1 marzo 2023
mercoledì 1 marzo 2023
giovedì 30 marzo 2023

 

 

closed_dt
venerdì 3 marzo 2023
venerdì 3 marzo 2023
 
 
giovedì 23 marzo 2023
giovedì 23 marzo 2023
giovedì 16 marzo 2023
venerdì 17 marzo 2023
giovedì 16 marzo 2023
giovedì 16 marzo 2023
giovedì 16 marzo 2023
martedì 14 marzo 2023
martedì 7 marzo 2023
martedì 7 marzo 2023
venerdì 3 marzo 2023
martedì 21 febbraio 2023
martedì 21 febbraio 2023
 

 

see if the attached helps.

Thanks for your support.

 

In your workfile, the activities that had target dates January 2023 were all closed within the target (four activities were even closed in December 2022).

Your table, however, shows 16 activities closed on time instead of 20

How can activities closed early be included in the calculation?

ss89_0-1679928214274.png

ss89_1-1679928746442.png

Thanks in advance!

 

All the best

I thought you wanted to exclude the items with an empty closed_dt ?

Hello!

 

Yes, items with still empty closed_date should be excluded but I need activities closed early to be counted; for example, activities with target_date January2023 and closed in December2022 should be counted in addition to the activities closed in January2023 itself.

 

Thanks in advance!

 

All the best

 

yes, that's what "Closed on time"  does, no?

Yes, but if you see at you example data source, on January 2023 there are 20 activities closed on time, not 16 activities.

Is there something that was not considered in the setting of the formula?

 

Thanks in advance!

ss89
Helper II
Helper II

 

MonthALL To be closedALL ClosedLI Closed On Time
1201680%
22121100%
31818100%
41616100%
51010100%
63030100%
72323100%
82323100%
999100%
102121100%
114949100%
121212100%

 

 

closed_dt
venerdì 27 gennaio 2023
mercoledì 25 gennaio 2023
mercoledì 25 gennaio 2023
martedì 24 gennaio 2023
lunedì 23 gennaio 2023
mercoledì 18 gennaio 2023
venerdì 20 gennaio 2023
venerdì 20 gennaio 2023
martedì 17 gennaio 2023
lunedì 16 gennaio 2023
martedì 17 gennaio 2023
giovedì 12 gennaio 2023
giovedì 12 gennaio 2023
martedì 10 gennaio 2023
giovedì 22 dicembre 2022
martedì 20 dicembre 2022
martedì 20 dicembre 2022
giovedì 22 dicembre 2022
venerdì 20 gennaio 2023

mercoledì 18 gennaio 2023

 

 

Target_Date
lunedì 30 gennaio 2023
sabato 28 gennaio 2023
venerdì 27 gennaio 2023
venerdì 27 gennaio 2023
mercoledì 25 gennaio 2023
lunedì 23 gennaio 2023
domenica 22 gennaio 2023
domenica 22 gennaio 2023
sabato 21 gennaio 2023
giovedì 19 gennaio 2023
martedì 17 gennaio 2023
domenica 15 gennaio 2023
giovedì 12 gennaio 2023
mercoledì 11 gennaio 2023
domenica 8 gennaio 2023
mercoledì 4 gennaio 2023
lunedì 2 gennaio 2023
domenica 1 gennaio 2023
domenica 22 gennaio 2023
domenica 22 gennaio 2023
lbendlin
Super User
Super User

Please provide sample data that covers your issue or question completely, in a usable format (not as a screenshot).
https://community.powerbi.com/t5/Community-Blog/How-to-provide-sample-data-in-the-Power-BI-Forum/ba-...
Please show the expected outcome based on the sample data you provided.

https://community.powerbi.com/t5/Desktop/How-to-Get-Your-Question-Answered-Quickly/m-p/1447523

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 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.

Top Solution Authors
Top Kudoed Authors