Forum Discussion
ghouse_peer
Post Patron
3 years agoCount with all Status and Divide by Total
Hi team,
I ahve a column in my dataset named "Status".
In Status column we have Completed, In Progress, Awaiting Confirmation and Blanks.
Total Alerts= Sum of counts (Completed+In Progress+Awaiting Confirmation+Blanks.)
Sum= (Completed+In Progress)
Calculation: Sum/Total Alerts.
Kindly help me with the solution.
Thanks in advance
Hi ghouse_peer
try like:
Ratio =VAR _value = CALCULATE(COUNTROWS(TableName), TableName[Status] IN {"Completed", "In Progress"})VAR _allvalue = CALCULATE(COUNTROWS(TableName), ALL(TableName))RETURNDIVIDE(_value, _allvalue)
2 Replies
- FreemanZ
Super User
Hi ghouse_peer
try like:
Ratio =VAR _value = CALCULATE(COUNTROWS(TableName), TableName[Status] IN {"Completed", "In Progress"})VAR _allvalue = CALCULATE(COUNTROWS(TableName), ALL(TableName))RETURNDIVIDE(_value, _allvalue)- ghouse_peer
Post Patron
Thank You it worked...