How do I create DAX that finds the percent of incidents that are Status=Closed based on row view
Total Incidents = Count of CREATED_DATE
I tried following Measure both gave error
`% Closed:=if(Table1[STATUS]="Closed",[Count of CREATED_DATE],0)/[Count of CREATED_DATE]`
and
% Closed2:=DIVIDE(if(Table1[STATUS]="Closed",[Count of CREATED_DATE],0),[Count of CREATED_DATE],0)
Sample data from Power Pivot.
Here is my table
Here is what I wish to create. Please note, the % of Closed Incidents to Total should change based on how I filter the power-pivot, i.e. if I filter to include ONLY closed incidents, then naturally the % should be 100%