cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
guimatheus92 Frequent Visitor
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.

 

filter 1.png

 

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.

 

filter 2.png

 

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
Super User IV

Re: Card with percentage using any filter

@guimatheus92 , 

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

 

percentage.PNG





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




View solution in original post

4 REPLIES 4
Super User IV
Super User IV

Re: Card with percentage using any filter

@guimatheus92 , 

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

 

percentage.PNG





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




View solution in original post

Super User IV
Super User IV

Re: Card with percentage using any filter

@guimatheus92 ,

 

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

 





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




guimatheus92 Frequent Visitor
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
Super User IV

Re: Card with percentage using any filter

Hi @guimatheus92 ,

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





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




Helpful resources

Announcements
Coming Soon: T-Shirt Design Contest

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!

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?

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

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!

Power Platform Online Conference

Power Platform Online Conference

Join us for the first ever Power Platform Online Conference!

Top Solution Authors
Top Kudoed Authors