Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
This seems a bit silly, but my measures on percentage is showing odd figures. I have a column, with a "Yes" or "No" values. I did the following to extract the number of "Yes" values:
Solved! Go to Solution.
Here you go my friend. Please accept this as correct if this meets your requirements
Edit:
Slightly modified the TotalifYes variable
CountofYesHeard = CALCULATE(COUNTA('Table'[Heardofus?]), 'Table'[Heardofus?] = "Yes")
TotalCounts = VAR choice = SELECTEDVALUE('Table'[Heardofus?]) VAR TotalifYes = [CountofYesHeard], VAR Total = CALCULATE ( COUNTA('Table'[Heardofus?]), all('Table'[Heardofus?]) ) RETURN SWITCH ( choice, "No",BLANK(), "Yes", TotalifYes, Total )
% heard = DIVIDE([CountofYesHeard],[TotalCounts], BLANK())
@Anonymous
Hi, try with this:
CountYes = CALCULATE(COUNTA(Table1[A]),FILTER(Table1,Table1[B]="yes"))
%Yes of Total = DIVIDE([CountYes],CALCULATE(COUNTA(Table1[A]),ALLSELECTED(Table1)))
Regards
Victor
Lima - Peru
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
107 | |
98 | |
78 | |
66 | |
53 |
User | Count |
---|---|
144 | |
104 | |
100 | |
86 | |
64 |