Forum Discussion
pawelj795
5 years agoPost Prodigy
Count rows with the same date
Hi, I have data like below. Now, I want to count how many journals were closed and how many journals were opened on a particular date. How to do this? Sample file: https://drive.google...
AlB
5 years agoCommunity Champion
Hi pawelj795 Get rid of the relationships and create these measures:
Count of Closed Journals V2 =
CALCULATE (
DISTINCTCOUNT ( Sheet1[Journal number] ),
FILTER (
ALL ( Sheet1[Closed Date] ),
Sheet1[Closed Date] <= MAX ( 'Date'[Date] )
&& NOT ISBLANK ( Sheet1[Closed Date] )
)
)
Count of created Journals V2 =
CALCULATE (
DISTINCTCOUNT ( Sheet1[Journal number] ),
FILTER (
ALL ( Sheet1[Created date] ),
Sheet1[Created date] <= MAX ( 'Date'[Date] )
)
)
See it all at work in the attached file.
Please mark the question solved when done and consider giving a thumbs up if posts are helpful.
Contact me privately for support with any larger-scale BI needs, tutoring, etc.
Cheers