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.
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 @JADG ,
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 @JADG ,
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êsCovering 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 |
---|---|
111 | |
95 | |
80 | |
68 | |
59 |
User | Count |
---|---|
150 | |
119 | |
104 | |
87 | |
67 |