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.
Hello everyone,
looking for help to solve with the following, probably standard, scenario.
I need to calculate the total price ( quantity * rate) for each transaction of the Lanes table. Ultimately i need to compare prices to find the lowest bid.
So, i was trying to define a measure to do the following:
For each supplier multiply quantity * rate giving the following conditions:
Lanes[Lane ID] = Quotations[LaneID]
Lanes[Bracket] = Quotations[Bracket]
I solved this problem in the past creating calculated columns to calculate prices for each and every supplier individually.
The data model can be simplified as shown below:
Two tables:
Lanes (fact table)
Quotations
You may consider using RANKX Function to add a calculated column first.
Column = RANKX ( CALCULATETABLE ( Quotations, ALLEXCEPT ( Quotations, Quotations[LaneID], Quotations[Bracket] ) ), Quotations[Rate], , ASC, DENSE )
thank you very much.
Actually, i found this example and it is exactly what i am looking for.
However, although i am following the instructions it does not work for me. This is the error message i am getting:
"A table of multiple values was supplied where a single value was expected"
Any ideas?
Thank you very much!
Take a good look at LOOKUPVALUE Function.
Hi @onkelphill,
Have you resolved this problem? If not, share the link from where i can download you file and also show your expected result there.
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
109 | |
98 | |
77 | |
66 | |
54 |
User | Count |
---|---|
144 | |
104 | |
100 | |
86 | |
64 |