Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

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.

Reply
adavid999
Helper V
Helper V

Display simple summary of text column

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

 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

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.

View solution in original post

2 REPLIES 2
Anonymous
Not applicable

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

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.