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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
bwhitehorne
New Member

DAX Expression To Prevent Cards From Summing Percentages

Hello,

 

I have a dataset formatted like this:

Customer GroupCustomer2022 Revenue YTD2021 Revenue YTDDelta% Growth over 2021

Group 1

Customer A100,00095,0005,0005.26%

Group 1

Customer C50,00065,000-15,000-23.07%
Group 2Customer F75,00050,00025,00050%
Group 2Customer D300,000298,0002,0000.67%

 

I am trying to display the "% Growth over 2021" in a card, with a slicer for "Customer". Currently when I have one customer selected in the slicer, the % Growth over 2021 field displays correctly in the card. When I select more than one customer, the card sums the percentages and displays it incorrectly. The goal would be for it to give the percentage based on the TOTALS when multiple customers are selected. Is there any work around for this with DAX?

1 ACCEPTED SOLUTION
v-xiaosun-msft
Community Support
Community Support

Hi @bwhitehorne ,

According to your description, here is my solution.

Create a measure.

Total % Growth over 2021 =
DIVIDE (
    SUM ( 'Table'[2022 Revenue YTD] ) - SUM ( 'Table'[2021 Revenue YTD] ),
    SUM ( 'Table'[2021 Revenue YTD] )
)

Display the "Total % Growth over 2021" in a card, with a slicer for “Customer”.
Select multiple customers that you need in the slicer.

vxiaosunmsft_1-1662371658112.png

 

Finally, the card will display different results of the percentage based on the TOTALS according to multiple customers.

 

 

Best Regards,
Community Support Team _ xiaosun

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

2 REPLIES 2
v-xiaosun-msft
Community Support
Community Support

Hi @bwhitehorne ,

According to your description, here is my solution.

Create a measure.

Total % Growth over 2021 =
DIVIDE (
    SUM ( 'Table'[2022 Revenue YTD] ) - SUM ( 'Table'[2021 Revenue YTD] ),
    SUM ( 'Table'[2021 Revenue YTD] )
)

Display the "Total % Growth over 2021" in a card, with a slicer for “Customer”.
Select multiple customers that you need in the slicer.

vxiaosunmsft_1-1662371658112.png

 

Finally, the card will display different results of the percentage based on the TOTALS according to multiple customers.

 

 

Best Regards,
Community Support Team _ xiaosun

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

amitchandak
Super User
Super User

@bwhitehorne , Try like

 

if these two are measures - 2022 Revenue YTD 2021 Revenue YTD; then formula should be

 

Measure for % Growth over 2021

divide([2022 Revenue YTD] - [2021 Revenue YTD], [2021 Revenue YTD])

 

If they are columns then

Measure for % Growth over 2021

divide(Sum(Table[2022 Revenue YTD]) - Sum(Table[2021 Revenue YTD]), Sum(Table[2021 Revenue YTD]))

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

Check out the July 2025 Power BI update to learn about new features.