Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
Hello everyone,
My table has unique activity ID and each activity ID has an activity status (Not Started/In Progress/Completed) associated with it.
I would like to calculate a total number of activities with Not Started or In Progress or Completed status.
However these activities IDs are duplicated becasue of unpivot column action to date column and therefore I'm getting wrong results.
I tried formula below but still not getting right results
Not Started Count = CALCULATE(DISTINCTCOUNT('Activity Code with Budgeted Units'[Activity ID]),'Activity Code with Budgeted Units'[Activity Status]="Not Started")
Can somebody help me with this? Your help is appreciated.
Regards,
Nilesh Jain
Solved! Go to Solution.
Hi @jnnilesh29
try ALL
Not Started Count = CALCULATE(DISTINCTCOUNT('Activity Code with Budgeted Units'[Activity ID]),'Activity Code with Budgeted Units'[Activity Status]="Not Started", ALL('Activity Code with Budgeted Units'))
or show please what exactly wrong with your result
Hi @jnnilesh29
try ALL
Not Started Count = CALCULATE(DISTINCTCOUNT('Activity Code with Budgeted Units'[Activity ID]),'Activity Code with Budgeted Units'[Activity Status]="Not Started", ALL('Activity Code with Budgeted Units'))
or show please what exactly wrong with your result
Thanks, it did work.
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
107 | |
98 | |
78 | |
66 | |
53 |
User | Count |
---|---|
144 | |
104 | |
100 | |
86 | |
64 |