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
Vaneet05
Helper I
Helper I

Sum of Column In grand Total

Dear Team,

 

My workbook in Table contains column name FY 2022-23 Price Erosion .logically it gives me the correct number in the total but I want to sum that particular column in the total. Item wise value should be the same as given but in the grand total it should give me the sum of all values.

 

Workbook link-  https://drive.google.com/file/d/1C5DOR6faiHnYGpxVaT41G0Yt8go-tabr/view?usp=sharing 

Example link -https://drive.google.com/file/d/1JH4dljbDTd4j4b109x48i0MH_xX3_VE5/view?usp=sharing 

In Example Link  value of FY 2022-23, Price Erosion is the sum of that column which I want the same  in my powerbi workbook 

 

 

Vaneet05_0-1649995681935.png

 

 

 

1 ACCEPTED SOLUTION

Try:

FY 2022-23 Price Erosion =
SUMX (
    'Product',
    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]
        )
    )
)




Did I answer your question? Mark my post as a solution!
In doing so, you are also helping me. Thank you!

Proud to be a Super User!
Paul on Linkedin.






View solution in original post

5 REPLIES 5
Vaneet05
Helper I
Helper I

@PaulDBrown Please help.

Try:

FY 2022-23 Price Erosion =
SUMX (
    'Product',
    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]
        )
    )
)




Did I answer your question? Mark my post as a solution!
In doing so, you are also helping me. Thank you!

Proud to be a Super User!
Paul on Linkedin.






Thankyou it works.

ghoshabhijeet
Solution Supplier
Solution Supplier

@Vaneet05  I have checked both the link you shared and it seems both are at same. Please help me understand if I am missing something.

@ghoshabhijeet First link is of Pbix and the second link is a CSV file. You need to download both and output already in Csv same needs to implement in Pbix.

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.