This is best Fabric, Power BI, SQL and AI community event. How do we know? The last event sold out! Save €200 with code FABCMTY200.
Register nowA new Data Days event is coming soon! This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. Don't miss out.
Hi all,
I have a report page which shows Item sales details. Now I want to map cost of the item on each line.
The Cost table is like as follows:
| ItemNumber | PostingDate | UoM | Cost |
| 3002383 | 02/01/2022 | PC | 0.090 |
| 3002383 | 05/01/2022 | PC | 0.095 |
| 3002383 | 12/01/2022 | PC | 0.100 |
| 3002383 | 13/01/2022 | PC | 0.960 |
If I run the Sales report from 02/01/2022 to 12/01/2022, the cost for the aboive item should show as
from 02/01/2022 to 04/01/2022: Cost: 0.090
from 05/01/2022 to 11/01/2022: Cost: 0.095
on 12/01/2022: the cost is 0.100
Solved! Go to Solution.
i did the data transform in PQ, pls see if this is what you want
Proud to be a Super User!
Hi @ryan_mayu Thank you, can u please share the .pbix file once again as I am getting error while opening it.
i forgot to delete the visual. The output is the 'Merge' table.
Proud to be a Super User!
@ryan_mayu thank you for the quick response. my requirement is to show the cost price on respective sales line.
| Date | Item | Quantity | Cost | Total Cost | Selling Price | Total | Margin |
| 02/01/2024 | 3002383 | 2 | 0.09 | 0.18 | 0.115 | 0.23 | 0.05 |
| 03/01/2024 | 3002383 | 1 | 0.09 | 0.09 | 0.115 | 0.115 | 0.025 |
| 05/01/2024 | 3002383 | 10 | 0.095 | 0.95 | 0.115 | 1.15 | 0.2 |
| 10/01/2024 | 3002383 | 5 | 0.095 | 0.475 | 0.115 | 0.575 | 0.1 |
| 12/01/2024 | 3002383 | 2 | 0.1 | 0.2 | 0.115 | 0.23 | 0.03 |
you can create a measure
Proud to be a Super User!
Check out the May 2026 Power BI update to learn about new features.
Sign up to receive a private message when registration opens and key events begin.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
| User | Count |
|---|---|
| 28 | |
| 25 | |
| 25 | |
| 22 | |
| 13 |
| User | Count |
|---|---|
| 60 | |
| 50 | |
| 26 | |
| 20 | |
| 19 |