Forum Discussion
Saravanan_ameer
3 years agoFrequent Visitor
Percentage for selected value
I have the table which contains columns like request status (OPEN,CLOSED,ONHOLD,CANCELLED), Request ID, Created date Now i placed the slicer for the date range so if i select the date range i wan...
- Anonymous3 years ago
That's cool, I think you should use switch statement rather then this nested if statement to reduce the complexity and performance of the measure like this.
Test = switch(Request_Table[Request Status],"Closed","Completed","Resolved","Completed","Cancelled","Completed","Open or On Hold")
OR
if(Request_Table[Request] IN { ,"Closed","Resolved","Cancelled"} ,"Completed" , "Open or On Hold")This will improve your dax performance alot.
If my response helps you a bit then do hit the like.
Anonymous
3 years agoNot applicable
Hi, Actually you want to show percentages in the kpi rather than the whole total, right?
Saravanan_ameer
3 years agoFrequent Visitor
Yes I got the outpu by using the IF fucntion i created the column
Completed Status = IF(Request_Table[Request Status]="Closed","Completed",IF(Request_Table[Request Status]="Resolved","Completed",IF(Request_Table[Request Status]="Cancelled","Completed","Open or On Hold")))
After that i applied it to the Pie chart and I got the result