Forum Discussion
Count Non Blank Dates for current month
I have a table that has Ratified Dates, so I want to count the number of Ratified Dates that have a date in them and by current month, or by specfic Month. For example, there are 3 Ratified dates in September for a specific client Abbreviation, then count those number of times there is a date for September.
Hi Kornholio
Try this: PBIX 10/20/2019
Let me know if you have any questions.
If this solves your issues, please mark it as the solution, so that others can find it easily. Kudos are nice too.
NathanielRatified Dates All = VAR _minDate = MIN ( Con2[RatifiedDates] ) VAR _maxDate = MAX ( Con2[RatifiedDates] ) VAR _calc = CALCULATE ( [Countrows2], FILTER ( ALLEXCEPT ( Con2, Con2[DevelopmentCode] ), Con2[RatifiedDates] >= _minDate && Con2[RatifiedDates] <= _maxDate ) ) RETURN _calc
22 Replies
- Nathaniel_C
Community Champion
Hi Kornholio ,
Can you provide us with a pbix, or some dummied up tables that show your tables, and where you want to go.
Thanks,
Nathaniel
Please read this post to get your question answered more quickly:
https://community.powerbi.com/t5/Community-Blog/How-to-Get-Your-Question-Answered-Quickly/ba-p/38490- Kornholio
Helper III
COMPANYCODE DEVELOPMENTCODE RELEASE_DATE JIONUMBER UNUSED COSTFLAG SALESRELEASEDATE CONTRACT_DATE RATIFIED_DATE 1 AG Wednesday, November 2, 2016 X Friday, January 27, 2017 Friday, January 27, 2017 1 AG Wednesday, May 31, 2017 X Tuesday, April 17, 2018 Tuesday, April 17, 2018 1 AG Wednesday, November 2, 2016 Y Sunday, September 15, 2019 Sunday, September 15, 2019 1 AG Monday, May 22, 2017 Y Sunday, September 1, 2019 Sunday, September 1, 2019 1 AG Thursday, June 8, 2017 X Thursday, February 21, 2019 Thursday, February 21, 2019 1 AG Wednesday, May 31, 2017 X Thursday, February 22, 2018 Thursday, February 22, 2018 1 AG Y 1 AG Y 1 AG Wednesday, May 29, 2019 Y 1 AG Y 1 AG Monday, February 26, 2018 X Monday, December 18, 2017 Monday, December 18, 2017 1 AG Monday, April 17, 2017 X Thursday, March 31, 2016 Thursday, March 31, 2016 1 AG Y 1 AG Tuesday, March 21, 2017 Y 1 AG Y 1 AG Y 1 AG Wednesday, November 2, 2016 X Friday, November 4, 2016 Friday, November 4, 2016 1 AG Wednesday, May 3, 2017 X Friday, April 7, 2017 Friday, April 7, 2017 1 AG Wednesday, November 2, 2016 X Wednesday, March 30, 2016 Monday, November 28, 2016 1 AG Wednesday, November 2, 2016 X Sunday, January 22, 2017 Sunday, January 22, 2017 1 AG Wednesday, November 2, 2016 X Thursday, October 27, 2016 Tuesday, November 29, 2016 1 AG Y - Kornholio
Helper III
So using the Development Code, count the number of times in September of 2019 that there was a date