- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Sorting data from 3 tables.
Hello,
I have 3 tables.
Table A where I have my work orders.
Work order |
Work order 1 |
Work order 2 |
Work order3 |
Table B with all the parts used during those work orders and the quantity. Table A and B are linked with a one-to-many relationship, so a workorder can have multiple references used.
Work order | Reference | Qty |
Work order 1 | 123 | 5 |
Work order1 | 456 | 8 |
Work order 1 | 789 | 7 |
Work order 2 | 789 | 9 |
Work order 2 | 456 | 3 |
Work order 3 | 789 | 8 |
Table C with the references and the price for each
Reference | Price |
123 | 200 |
456 | 300 |
789 | 400 |
I would like to choose a work order and see all the used parts with the total price per line and a Grand Total.
I’m starting with Power BI but have worked since years with access and Excel.
If someone could help that would be wonderful.
Thank you so much and have a great 2024 year.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi @Laurent123
I updated my measure formula and it now shows correctly
Total Price =
SUMX(
'Table 2',
'Table 2'[Qty] * RELATED('Table 3'[Price])
)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi @Laurent123
Here are the three tables you provided, The relationship between them has been properly established
Based on your three tables, you can build such a table in the Report View interface
You can create such a measure to calculate total price per line
Total Price = MAX('Table 2'[Qty])*MAX('Table 3'[Price])
Then you can put this measure into the table
Then you can create a slicer and drag the Work order field into the slicer
This is the result you want, each time you select an option in the slicer, the values in the table will change as well
Best Regards,
Jayleny
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello,
THanks for helping.
The Total looks wrong
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi @Laurent123
I updated my measure formula and it now shows correctly
Total Price =
SUMX(
'Table 2',
'Table 2'[Qty] * RELATED('Table 3'[Price])
)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello, thank you.
May I ask you how did you create the column "Sum of Column"?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
hi, @Laurent123
when you drag your column to table visula or other visual in visualization pane click on drop down sign(show in image below) your column name that open selection box from that you can select (sum,avearge,count....)
look below image
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Sorry but I don't have all those choices
It is in French but ...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

Helpful resources
Join us at the Microsoft Fabric Community Conference
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Power BI Monthly Update - February 2025
Check out the February 2025 Power BI update to learn about new features.

Subject | Author | Posted | |
---|---|---|---|
Anonymous
| 09-09-2019 02:11 AM | ||
08-13-2024 07:28 AM | |||
04-04-2024 06:38 PM | |||
01-16-2024 01:26 AM | |||
04-05-2024 03:03 AM |
User | Count |
---|---|
23 | |
12 | |
10 | |
10 | |
8 |
User | Count |
---|---|
16 | |
15 | |
15 | |
12 | |
10 |