Calculate percentage from different columns in the same table
I have the below data in a table where I'm trying to find the percentage of "Patients Who agreed for recommendations" and the count of patients who agreed for recommendations.
Patient Recommendations AgreedForTherecommendation 1 A B 1 B B 2 A A 2 A C 2 C A 3 D C 4 A A
Finding the count value was simple using DAX fomula -Measurecount = CALCULATE(DISTINCTCOUNT(Table1[Patient])). I was trying different DAX formula to get the percentage but the results are not matching the below output.
For calculating percentage I was trying the below DAX
Measure Percentage = VAR allcid= CALCULATE(DISTINCTCOUNT (Table1[Recommendations]))