Forum Discussion
Calculating Percentage
- Anonymous8 years ago
Hi Anonymous,
I think you can do it like this:
Create a measure:
CountOpen = CALCULATE(COUNTA(Table1[Status]);Table1[Status] = "Open")
and after that:
PercentageOpen = [Countopen] / COUNT(Table1[Status])
The last measure will give you the percentage of Open status'es, you need to format the last measure as percentage!
If you want to do the same for Closed you can do it the same way but replace "Open" by "Closed"
Let me know if this worked. :)
Regards,
L.Meijdam
Hi Anonymous,
I think you can do it like this:
Create a measure:
CountOpen = CALCULATE(COUNTA(Table1[Status]);Table1[Status] = "Open")
and after that:
PercentageOpen = [Countopen] / COUNT(Table1[Status])
The last measure will give you the percentage of Open status'es, you need to format the last measure as percentage!
If you want to do the same for Closed you can do it the same way but replace "Open" by "Closed"
Let me know if this worked. :)
Regards,
L.Meijdam
- Anonymous8 years agoNot applicable
Hi Anonymous,
What happens when you display the first measure in a card visual ?
Best regards,
L.Meijdam
- Anonymous8 years agoNot applicable
It's working and shows the No. of Open status
- Anonymous8 years agoNot applicable
Anonymous
This is what happens
- Anonymous8 years agoNot applicable
Hi Anonymous,
- Are you sure you named your measure "CountOpen" ? it is case sensitive
- is "CountOpen" Formatted as a whole number ?
Best Regards,
L.Meijdam