Forum Discussion
Anonymous
8 years agoNot applicable
Count Statuses - DAX Help!!!!
I am currently using an "IF" function to apply a value of "Applied" or "N/A" within a column of a table. I am looking for some help in a DAX statement that will allow me to do the following: Co...
- 8 years ago
Something like:
Total Applied = calculate(countrows(your table),your table[your column]="Applied")
Do similar for N/A and the percentage of these should be trivial from there
SivaMani
8 years agoResident Rockstar
Anonymous,
Create a measure like below,
% =
var __a = CALCULATE(COUNTROWS(Table1),Table1[Status] = "A" )
var __b = CALCULATE(COUNTROWS(Table1),Table1[Status] = "B" )
Return
DIVIDE(__b,__a)
Then change the format as Percentage located under modeling Tab
Regards ,
Siva