Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now
I have a document that is updated every month with the business unit's roster information. I want to create a measure that counts the roster size dynamically with the Date function. See example below.
So the roster size for April would be 4 and for May would be 5. I apprecaite any assistance!
Solved! Go to Solution.
Hi @PaddyHS ,
According to your description, if you prefer a measure, here's my solution.
Count =
IF (
ISINSCOPE ( 'Table'[Roster Date] ),
COUNTROWS (
FILTER ( ALL ( 'Table' ), 'Table'[Roster Date] = MAX ( 'Table'[Roster Date] ) )
),
COUNT ( 'Table'[Roster Date] )
)
Get the result.
I attach my sample below for reference.
Best Regards,
Community Support Team _ kalyj
If this post helps, then please considerAccept it as the solution to help the other members find it more quickly.
Hi @PaddyHS ,
According to your description, if you prefer a measure, here's my solution.
Count =
IF (
ISINSCOPE ( 'Table'[Roster Date] ),
COUNTROWS (
FILTER ( ALL ( 'Table' ), 'Table'[Roster Date] = MAX ( 'Table'[Roster Date] ) )
),
COUNT ( 'Table'[Roster Date] )
)
Get the result.
I attach my sample below for reference.
Best Regards,
Community Support Team _ kalyj
If this post helps, then please considerAccept it as the solution to help the other members find it more quickly.
you need to create a date table.pls see the attachment below
Proud to be a Super User!
| User | Count |
|---|---|
| 55 | |
| 37 | |
| 26 | |
| 17 | |
| 17 |
| User | Count |
|---|---|
| 69 | |
| 58 | |
| 39 | |
| 21 | |
| 21 |