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

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

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
Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

Power BI Carousel June 2024

Power BI Monthly Update - June 2024

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

RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.