Join us for an expert-led overview of the tools and concepts you'll need to pass exam PL-300. The first session starts on June 11th. See you there!
Get registeredPower BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.
Hello,
please I need your support to solve my problem.
I want to compare actual price/unit (Revenues) with price/ unit (scale price) based on quantity. The scale price based on different quantity. I have 2 different tables. The first one shows the revenues and fees for each product. As well price/ unit (Revenues divided by quantity). The second table contains scale price based on different quantities.
This is how it should look like in the end:
First table revenues:
Second table Scale prices:
In Excel i would solve this one with VBA and a loop, but in Power BI i have no clue how to solve my problem.
I am thankfull for every help or solution I can get!
Thanks for your help!!
freiburgc
Solved! Go to Solution.
@amitchandakthanks for your answer. But unfortunately I don´t understand your solution.
I try to make my problem more clear. Maybe it helps.
This is how should look like in the end:
For example:
The price for product B, Revenues 180€, is 30€ if someone buys 6 units. If someone gets for e.g. 15 units, the price is 28€. All over 11 units the price is 28€.
1. Does it make sense to work in the table scale price with range over two columns or is one column for units enough?
Scale price table:
Do you have another idea to solve my problem?
Thanks for your support!
Freiburgc
You can create a measure using lookup. or can try using create a column in table 1 like this
Max price= Maxx(filter(Table2,Table1[product]='Item'[product] && Table1[posting date]>='table2'[posting date]),table2[price ])
Appreciate your Kudos. In case, this is the solution you are looking for, mark it as the Solution. In case it does not help, please provide additional information and mark me with @
Thanks.
My Recent Blog - https://community.powerbi.com/t5/Community-Blog/Comparing-Data-Across-Date-Ranges/ba-p/823601
@amitchandakthanks for your answer. But unfortunately I don´t understand your solution.
I try to make my problem more clear. Maybe it helps.
This is how should look like in the end:
For example:
The price for product B, Revenues 180€, is 30€ if someone buys 6 units. If someone gets for e.g. 15 units, the price is 28€. All over 11 units the price is 28€.
1. Does it make sense to work in the table scale price with range over two columns or is one column for units enough?
Scale price table:
Do you have another idea to solve my problem?
Thanks for your support!
Freiburgc
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 |
---|---|
84 | |
76 | |
75 | |
43 | |
36 |
User | Count |
---|---|
109 | |
56 | |
52 | |
48 | |
43 |