Join us for an expert-led overview of the tools and concepts you'll need to pass exam PL-300. The first session starts on June 11th. See you there!
Get registeredPower BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.
Hi,
I have a table like this:
Client | Type | StartDate | EndDate |
1 | F | 01/01/2019 | 19/10/2022 |
2 | P | 01/01/2019 | 19/10/2022 |
3 | F | 01/01/2019 | 12/12/2019 |
I need to total of clients per month between the Min(StartDate) and the Max(EndDate) in a table like this:
Year | Month | Count |
2019 | January | 3 |
2019 | February | 3 |
2019 | March | 3 |
...... | ||
2019 | December | 3 |
2020 | January | 2 |
... |
| |
2022 | October | 2 |
I would appreciate any help you can give me.
Solved! Go to Solution.
Hi,
Please check the below picture and the attached pbix file.
Count clients measure: =
COUNTROWS (
FILTER (
Data,
Data[StartDate] <= MAX ( 'Calendar'[Date] )
&& Data[EndDate] >= MIN ( 'Calendar'[Date] )
)
)
If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.
Schedule a short Teams meeting to discuss your question
Genius! Thanks!
Hi,
Please check the below picture and the attached pbix file.
Count clients measure: =
COUNTROWS (
FILTER (
Data,
Data[StartDate] <= MAX ( 'Calendar'[Date] )
&& Data[EndDate] >= MIN ( 'Calendar'[Date] )
)
)
If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.
Schedule a short Teams meeting to discuss your question
User | Count |
---|---|
84 | |
78 | |
70 | |
47 | |
41 |
User | Count |
---|---|
108 | |
53 | |
50 | |
40 | |
40 |