Forum Discussion
Anonymous
1 year agoNot applicable
Counting dates
Hi, I have a table looking a items and for each there is a Date Opened and a Date Closed. I am trying to create a table to show, by team member, how many items they had opened and closed each day ...
- Anonymous1 year ago
Hi Anonymous
Pls try this:
Create measures.
Opened Count = var _opendcount = CALCULATE( COUNTROWS('Table'), FILTER( 'Table', 'Table'[Date Opened] >= UTCNOW() - 30 && 'Table'[Date Opened] <= UTCNOW() ) ) RETURN IF( ISBLANK(_opendcount), 0, _opendcount )Closed Count = var _closedcount = CALCULATE( COUNTROWS('Table'), FILTER( 'Table', 'Table'[Date Closed] >= UTCNOW() - 30 && 'Table'[Date Closed] <= UTCNOW() ) ) RETURN IF( ISBLANK(_closedcount), 0, _closedcount )Where you can use UTCNOW () to get relative dates.
Relative Date = UTCNOW()Here is the result.
Regards,
Nono Chen
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
shafiz_p
1 year agoSuper User
Hi Anonymous Share example data and the expected result you want.