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
Anonymous
Not applicable

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

@Anonymous , 

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

@Anonymous , 

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!




@Anonymous ,

 

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!




Anonymous
Not applicable

Great! It worked, thanks for the tips.

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

Hi @Anonymous ,

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
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.