Power BI is turning 10, and we’re marking the occasion with a special community challenge. Use your creativity to tell a story, uncover trends, or highlight something unexpected.
Get startedJoin us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.
Hello!
I have a table with some ORDER movements during a certain period (DATE).
Consider a ChainValue where the main company ships its products to it's retailers/Customers (DEST_CUSTOMERS) and then the retailers further sell to their final customers.
Each transaction represents has it's own costs (TRANSPORT, DOCS and INSURANCE) for a certain WEIGHT.
GOAL: Calculate the sum of costs for each ORDER that a RETAILER sends to a final CUSTOMER, considering the averaged costs that the SOURCEproducer had by sending products to his location in the past few X-days.
In other word, for each row I would have:
Total_Costs = sum(TRANSPORT) + sum(DOCS) + sum(INSURANCE) + AveragedCostsFromSource
(In practice, this AveragedCostsFromSource) would be an weighted average of its costs, depending on weight beeing transported)
The Problem: I cretated a Calculated Measure that works fine, but because of performance issues and memory limitation, I am unable to see more that some thousand lines calculation and summarized in a visualization table, Howevere I have 6 millions rows in this dataset so I thought a calculated column would solve my problem.
Need therefore help creating a correspodent Calculated Column from my Measure AveragedCostsFromSource. I tryed several approaches but didn't get anything to work (it shows me blanks or it's not accepting some of the filters). Maybe this is not the best approach either, so feel free to comment the best approach.
Thanks.
Measure:
AveragedCostsFromSource =
Solved! Go to Solution.
Thanks for noticing. Forgot to put in that line when I copy&past it from my original file.
But that was not the solution for problem 😞
Solved the problem myself. Simple actually!
As a calculated column one has to use the rowvalue and not the SELECTEDVALUE as used on my measure. Thanks anyway guys
Solved the problem myself. Simple actually!
As a calculated column one has to use the rowvalue and not the SELECTEDVALUE as used on my measure. Thanks anyway guys
Hi @sloopools
in measure you have part "_selectedCustomer" but no VAR for this part.
Hope this help, kudos appreciated.
Proud to be a Super User!
Thanks for noticing. Forgot to put in that line when I copy&past it from my original file.
But that was not the solution for problem 😞
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
10 | |
9 | |
7 | |
6 | |
5 |
User | Count |
---|---|
20 | |
11 | |
10 | |
9 | |
6 |