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.
Hello, a simple question - I have a column of text in Power Query Editor comprising data either 'cats' or 'dogs'.
How do I display these categories on a card in Power Bi Desktop Report as a percentage of all. E.g 48% cats, 52% dogs?
Thanks,
A
Solved! Go to Solution.
Create measure
Total cat= calculate(Count(Table[Column]),filter(table,table[Column]="Cat")
Total dog= calculate(Count(Table[Column]),filter(table,table[Column]="dog")
Total=Count(Table[Column])
%cat=divide([Total cat],[Total])
%dog=divide([Total dog],[Total])
drag above two measures in card.
Thanks & regards,
Pravin Wattamwar
www.linkedin.com/in/pravin-p-wattamwar
If I resolve your problem Mark it as a solution and give kudos.
Create measure
Total cat= calculate(Count(Table[Column]),filter(table,table[Column]="Cat")
Total dog= calculate(Count(Table[Column]),filter(table,table[Column]="dog")
Total=Count(Table[Column])
%cat=divide([Total cat],[Total])
%dog=divide([Total dog],[Total])
drag above two measures in card.
Thanks & regards,
Pravin Wattamwar
www.linkedin.com/in/pravin-p-wattamwar
If I resolve your problem Mark it as a solution and give kudos.
Very helpful, thanks.
A
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 |
---|---|
108 | |
98 | |
81 | |
65 | |
62 |
User | Count |
---|---|
147 | |
116 | |
104 | |
88 | |
65 |