cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
adavid999 Helper I
Helper I

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

Accepted Solutions
PR20048119 Memorable Member
Memorable Member

Re: Display simple summary of text column

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
PR20048119 Memorable Member
Memorable Member

Re: Display simple summary of text column

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

adavid999 Helper I
Helper I

Re: Display simple summary of text column

Very helpful, thanks.

A

Helpful resources

Announcements
New Ranks Launched March 24th!

New Ranks Launched March 24th!

The time has come: We are finally able to share more details on the brand-new ranks coming to the Power BI Community!

‘Better Together’ Contest Finalists Announced!

‘Better Together’ Contest Finalists Announced!

Congrats to the finalists of our ‘Better Together’-themed T-shirt design contest! Click for the top entries.

Arun 'Triple A' Event Video, Q&A, and Slides

Arun 'Triple A' Event Video, Q&A, and Slides

Missed the Arun 'Triple A' event or want to revisit it? We've got you covered! Check out the video, Q&A, and slides now.

Top Solution Authors
Top Kudoed Authors
Users online (283)