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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
Vaneet05
Helper I
Helper I

Modification in Grand Total

Dear All,

 

In my workbook, there is one sheet it contains one table with the column FY 2022-23 Price Erosion which depends on the other two columns  FY 2022-23 ASP and FY 2021-22 ASP . Logically it gives me the correct answer item wise and the grand total also comes right as per logic in the formula. But I want the sum of FY 2022-23 Price Erosion in the grand total instead of the value coming which is logically correct as per the formula.

 

FY 2022-23 Price Erosion = CALCULATE(IF([Actual quantity 2022-23]>0,([FY 2022-23 ASP]-[FY 2021-22 ASP])*[Actual quantity 2022-23],([FY 2022-23 ASP]-[FY 2021-22 ASP])*[Actual quantity 2021-22]))

 

Vaneet05_0-1649219980984.png

 

2 REPLIES 2
amitchandak
Super User
Super User

@Vaneet05 , Try like

FY 2022-23 Price Erosion =Sumx(Values( Table[Name]) , CALCULATE(IF([Actual quantity 2022-23]>0,([FY 2022-23 ASP]-[FY 2021-22 ASP])*[Actual quantity 2022-23],([FY 2022-23 ASP]-[FY 2021-22 ASP])*[Actual quantity 2021-22])) )

 

Use correct table name for Name

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

Not giving me the correct output.

 

Before changing the formula. output is given below:

Vaneet05_0-1649223276824.png

 

After changing the formula output is given below:

Vaneet05_1-1649223358435.png

It's changing the value item wise also which is incorrect and the grand total is also not coming correctly.

I want item value should work as before but the only grand total should come as the sum of the price erosion column.

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors