Forum Discussion
Count of Discrepancy Based on Date
- 5 years ago
Hi aj1973 ,
Add another relationship from your date table to your facts on the close date. you can then create a measure that counts the closed by date as
closed = calculate(countrows('table'), 'date_closed' <> blank(), userelationship('date'[date], table[date_closed]))
Hi aj1973 ,
Add another relationship from your date table to your facts on the close date. you can then create a measure that counts the closed by date as
closed = calculate(countrows('table'), 'date_closed' <> blank(), userelationship('date'[date], table[date_closed]))
Thank you so much for this! It is working as expected. I'm getting the correct results for Closed Cases. How then, can I use a similar formula to capture Open Discrepancies?
Will it be Open = Calculate(Countrows('discrepancyTable'), 'OpenDateTime' <> Blank, Userelationship('date'[date], table[OpenDateTime]))??
- richbenmintz5 years ago
Resident Rockstar
Hi Anonymous ,
If the active relationship between the date table and the discrepancy table is materialized through the opendatetime column then you would only need the following
Open = Countrows('discrepancyTable')This will count all of the rows when they where opened regardless of state.
Make Sense?
- richbenmintz5 years ago
Resident Rockstar
Hi Anonymous ,
Not sure why you un-accepted the solution, if possible could you accept the solution as it makes it easier for other users to find answers in the forum.
Thanks,