cancel
Showing results for
Did you mean:
Frequent Visitor

## Card with percentage using any filter

Hi!

I think I'm having dificulty to solve a simple problem, but I'd like to show percentage of total in a card.

In picture 1, If I click in any section (red frame), my card should change the percentage as well.

In picture 2, If I click in any section or more than one at the same time (red frame), my card should also change the percentage.

I'm not using any measure (I didn't know how to solve this issue whithout filtering the section itself in the measure), I'm just using the same field that was used in that ribbonChart, but count that field and showing as percentage on the card.

Thanks,

1 ACCEPTED SOLUTION

Accepted Solutions
Super User IV

## Re: Card with percentage using any filter

Create a measure that uses ALL() as in my picture.  Create another measure that SUM(your column) then use DIVIDE to get your percentage.

Please let me know if you have any questions.

If this solves your issues, please mark it as the solution, so that others can find it easily. Kudos are nice too.
Nathaniel

Proud to be a Super User!

4 REPLIES 4
Super User IV

## Re: Card with percentage using any filter

Create a measure that uses ALL() as in my picture.  Create another measure that SUM(your column) then use DIVIDE to get your percentage.

Please let me know if you have any questions.

If this solves your issues, please mark it as the solution, so that others can find it easily. Kudos are nice too.
Nathaniel

Proud to be a Super User!

Super User IV

## Re: Card with percentage using any filter

I learned this technique from @MattAllington , in his book Supercharge Power BI, which I highly recommend! AMAZON

If this solves your issues, please mark it as the solution, so that others can find it easily. Kudos are nice too.
Nathaniel

Proud to be a Super User!

Frequent Visitor

## Re: Card with percentage using any filter

Great! It worked, thanks for the tips.

Is there any way easier? Or should I do this everytime in every dashboard?

Highlighted
Super User IV

## Re: Card with percentage using any filter

It may just be a bug in the POWER(), maybe see if you have the same issue if you write it out as multiplication.  My background is software development, and I know that sometimes we were so focused on the outcome, that we didn't widen our vision.  Good QA comes in handy then! BTW, I almost always use the DIVIDE() as it is the safe divide.

Thank you,

Nathaniel

Proud to be a Super User!

Announcements

#### Coming Soon: T-Shirt Design Contest

Keep your eyes open for our upcoming T-shirt design contest!

#### Meet the 2020 Season 1 Power BI Super Users!

It’s the start of a new Super User season! Learn all about the new Super Users and brand-new tiered recognition system.

#### Super User Challenge: Can You Solve These?

We're celebrating the start of the New Super User season with our first ever Super User 'Can You Solve These?' challenge.

#### Power BI Desktop Update - February 2020

We are super excited for our update this month, as we are releasing two of our top community requests!