Check your eligibility for this 50% exam voucher offer and join us for free live learning sessions to get prepared for Exam DP-700.
Get StartedDon't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.
Hi,
I have a table for average prices and weights sorted by the Start of Week Date (SoW)
I'm hoping to acheive something like this in the form of a new column
(Average Price Paid - GB SQQ Price * Total Intake Data Cold Weight = Additional Cost Total)
I'm hoping to find the overall sum of this Additional Cost Total column i.e.
Can anyone help?
Solved! Go to Solution.
@Anonymous - I did this:
Measure 2 = (AVERAGE('Sheet1 (2)'[Intake_Data_Price]) - [Average SQQ Price YTD]) * SUM('Sheet1 (2)'[Intake_Data_Cold_Weight])
See attached, not coming up with exactly your numbers.
Create a new column like this
Additional Cost Total = ([Average Price Paid] - [GB SQQ Price]) * [Total Intake Data Cold Weight]
Then sum it up.
So I have written a formula:
You need to do it on a common dimension. That dimension can be date and product etc
like
Additional Cost Total =
sumx(summarize(Table,Table[SoW],"_1" ,max('Sheet1 (2)'[AverageIntakeDataPrice]) , "_2",max('GB SQQ Price Data'[Average SQQ Price YTD]) ,"_3", sum('Sheet1 (2)'[Intake_Data_Cold_Weight])),([_1]*[_2])*[_3])
This table is a common dimension.
@Anonymous Any way you can share your PBIX? This can likely get taken care of fairly easily but it is very difficult without being able to see your table structures, data and how they can be related to one another.
@Anonymous - I did this:
Measure 2 = (AVERAGE('Sheet1 (2)'[Intake_Data_Price]) - [Average SQQ Price YTD]) * SUM('Sheet1 (2)'[Intake_Data_Cold_Weight])
See attached, not coming up with exactly your numbers.
I'm having a similar issue again with the summation of total "COP Cost YTD" i.e. in this formula (X-Y *Q)
As you suggested I have built a measure:
@Anonymous , I agree with @Greg_Deckler , Share a pbix.
I doubt the Start of Week Sort is not joined to Sheet1 (2) the table for which it gives error
@Anonymous What table are you creating this new column in? You will likely need to use RELATED or RELATED table, like:
Additional Cost Total = ('Sheet1 (2)'[AverageIntakeDataPrice]) - RELATED('GB SQQ Price Data'[Average SQQ Price YTD]) * ('Sheet1 (2)'[Intake_Data_Cold_Weight])
@Greg_Deckler I was hoping to create it in the GB SQQ Price Data table as I need the data in the Monday Start of each week format:
So when I enter this formula, the following is underlined
Additional Cost Total = ('Sheet1 (2)'[AverageIntakeDataPrice]) - RELATED('GB SQQ Price Data'[Average SQQ Price YTD]) * ('Sheet1 (2)'[Intake_Data_Cold_Weight])
But I get the error that I need to create a relationship: The column 'GB SQQ Price Data[Average SQQ Price YTD]' either doesn't exist or doesn't have a relationship to any table available in the current context.
However as Average SQQ Price YTD is different I'm not sure what to relate it to?
Should I just create a brand new table pulling in each of these variables that I need?
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.