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.
Hi Everyone
I'm very new in Power BI and I'm trying to learn DAX but I still have some basic issues
I have the following scenario:
- Table A with a list of Admissions Freight cost. (The freight cost is a single value for the whole admission)
- Table B all the batches for the Admissions
- Table C is the transactional table
How I can Sum Freight cost to Total Cost in the visual report?
Table A | |
Admissions | Freight Cost |
ADM01 | 800 |
ADM02 | 300 |
ADM03 | 5000 |
Table B | |
Admissions | Batch |
ADM01 | Batch1 |
ADM01 | Batch2 |
ADM01 | Batch3 |
Table C | |||
Key | Prod | Batch | Cost |
TableKey | Product1 | Batch1 | 1000 |
TableKey | Product1 | Batch1 | 5000 |
TableKey | Product1 | Batch1 | 4000 |
Visual Table | |||
Admission | Freight Cost from Table A | Total Cost (Sum of Transaction for ADM) Table B | Total + Freight |
ADM01 | 800 | 10000 | 10800 |
ADM02 | 300 | 5000 | 5300 |
ADM03 | 5000 | 15000 | 20000 |
Regards
JADG
Solved! Go to Solution.
Hi @Anonymous ,
Make the following relationships:
Then create the following measure:
Total + Freight = SUM(TableA[Freight Cost]) +SUM(TableC[Cost])
Now make you table with the following setup:
Check the result on the PBIX file attach.
Regards,
MFelix
Regards
Miguel Félix
Proud to be a Super User!
Check out my blog: Power BI em PortuguêsHi @Anonymous ,
Make the following relationships:
Then create the following measure:
Total + Freight = SUM(TableA[Freight Cost]) +SUM(TableC[Cost])
Now make you table with the following setup:
Check the result on the PBIX file attach.
Regards,
MFelix
Regards
Miguel Félix
Proud to be a Super User!
Check out my blog: Power BI em PortuguêsThis 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 |