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

The Power BI DataViz World Championships are on! With four chances to enter, you could win a spot in the LIVE Grand Finale in Las Vegas. Show off your skills.

Reply
Anonymous
Not applicable

How to create a card in Power BI that shows % of value based on slicer and data selection?

Hi All,

 

I want to create a card (shown in the bottom right side) that shows % spend based on what slicer selection is done (shown in the top right side - 2 slicers) and data selection (in the sankey chart) is made in the report. Currently it only shows 100% irrespective of what I select, although I have selected - % of Grand Total in the calculation field. I would also like to know if there is any way to show that % in Tooltip ?

 

Screenshot (122).pngScreenshot (123).pngScreenshot (124).png

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @v-deddai1-msft 

 

Thank you for your support and offer to help. I tried using a mix of summarize & calculate function & it got resolved. 

 

Thank you!

Dhaval

View solution in original post

5 REPLIES 5
v-deddai1-msft
Community Support
Community Support

Hi @Anonymous ,

 

Would you please inform us more detailed information( your sample pbix(by OneDrive for Business)) if possible? Then we will help you more correctly.

 

If you want show the card in tooltips. I suggest use page-level tooltips, Please follow the steps in the link:https://docs.microsoft.com/en-us/power-bi/desktop-tooltips

 

Best Regards,

Dedmon Dai

Anonymous
Not applicable

Hi @v-deddai1-msft 

 

Thank you for your support and offer to help. I tried using a mix of summarize & calculate function & it got resolved. 

 

Thank you!

Dhaval

Hi @Anonymous ,

 

Thank you for sharing the solution, then please consider Accept it as the solution to help the other members find it more quickly.

 

Best Regards,

Dedmon Dai

Anonymous
Not applicable

Hi @Anonymous ,

 

I think you need to create a measure to calculate that:

 

divide(calculate(sum(your_spend_column)),calculate(sum(your_spend_column),all(your_table)),0)

 

If this is not correct, please show me your data model, I will modify it.

 

Thanks.

Aiolos Zhao 

Anonymous
Not applicable

Hi @Anonymous 

 

Thank you for your response & guidance. I tried using a mix of summarize & calculate function & it got resolved. 

 

Thank you!

Dhaval

Helpful resources

Announcements
Feb2025 Sticker Challenge

Join our Community Sticker Challenge 2025

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!

Jan NL Carousel

Fabric Community Update - January 2025

Find out what's new and trending in the Fabric community.