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

To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.

Reply
Anonymous
Not applicable

Data trasnform and calculation

Hi Experts,

 

data set is like below.

Gg2023_0-1686278661065.png

 and i pivot this tables in power query as below. How could i get the amount value with Volumn*Price(with every records multiple)? Please help. 

Gg2023_1-1686278713184.png

 

 

1 ACCEPTED SOLUTION
Jihwan_Kim
Super User
Super User

Hi,

I am not sure how your datamodel looks like, but I tried to create a sample pbix file like below.

Please check the below picture and the attached pbix file.

If fixing the table structure is not allowed, the below may be the one of many ways to solve this.

 

Jihwan_Kim_0-1686280340117.png

 

Jihwan_Kim_1-1686280569742.png

 

Volume X Price: =
SUMX (
    VALUES ( 'Calendar'[Year-Month sort] ),
    CALCULATE ( SUM ( Data[Value] ), Data[KPI] = "Volume" )
        * CALCULATE ( SUM ( Data[Value] ), Data[KPI] = "Price" )
)

 

 


If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.


Click here to visit my LinkedIn page

Click here to schedule a short Teams meeting to discuss your question.

View solution in original post

2 REPLIES 2
Jihwan_Kim
Super User
Super User

Hi,

I am not sure how your datamodel looks like, but I tried to create a sample pbix file like below.

Please check the below picture and the attached pbix file.

If fixing the table structure is not allowed, the below may be the one of many ways to solve this.

 

Jihwan_Kim_0-1686280340117.png

 

Jihwan_Kim_1-1686280569742.png

 

Volume X Price: =
SUMX (
    VALUES ( 'Calendar'[Year-Month sort] ),
    CALCULATE ( SUM ( Data[Value] ), Data[KPI] = "Volume" )
        * CALCULATE ( SUM ( Data[Value] ), Data[KPI] = "Price" )
)

 

 


If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.


Click here to visit my LinkedIn page

Click here to schedule a short Teams meeting to discuss your question.
Anonymous
Not applicable

Thanks. 

Helpful resources

Announcements
September Power BI Update Carousel

Power BI Monthly Update - September 2025

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

Top Solution Authors
Top Kudoed Authors