Forum Discussion
Calculating Time Categories
- 2 years ago
Hi Unknowncharacte
You can create 2 measures :
1.count from today = DATEDIFF(max('Table'[Date Opened]),TODAY(),DAY)2.
dates bins = if (max('Table'[Case Status])="closed", blank(),if ([count from today]>91, "91-120",if([count from today]>61,"61-90",if([count from today]>31,"31-60",if([count from today]<=30,"0-30")))))If this post helps, then please consider Accepting it as the solution to help the other members find it more quickly
- 2 years ago# 30 to 60 Days =
CALCULATE(COUNT(FactTable[Case]),DATEDIFF(FactTable[Date Opened],TODAY(),DAY)>=30&&DATEDIFF(FactTable[Date Opened],TODAY(),DAY)<=60)# Less than 30 days =
CALCULATE(COUNT(FactTable[Case]),DATEDIFF(FactTable[Date Opened],today(),DAY)<30)
Hi Unknowncharacte
You can create 2 measures :
1.count from today = DATEDIFF(max('Table'[Date Opened]),TODAY(),DAY)
2.
If this post helps, then please consider Accepting it as the solution to help the other members find it more quickly
- Unknowncharacte2 years agoHelper III
Would you be able to adjust so it shows counts like this? I am using this with another column - case owner, hence the names, I just wanted to show the final result I am after.
- Ritaf19832 years agoSuper User
Hi Unknowncharacte
Please share a link to pbix with your sample data- Unknowncharacte2 years agoHelper III
Here you go, not all categories will have data for them, data changes daily, and case counts for each category vary as well