Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.
Dears,
I have some orders, some of them are charged with delivery charge & others are free. We add the delivery charge as an item with a code No. (11), so in case the order is charged with delivery, we add item No. (11) & in case it's free of charge, we don't add that item.
I'd like to have 2 separate tables as per the below:
Data tables
The expected outcome tables are:
Solved! Go to Solution.
You can write a measure to sum the total price
Total Invoice Cost = SUM ( YourTable[Price] )
Then a mesure to calculate the delivery cost.
Delivery Cost = CALCULATE ( [Total Invoice Cost], YourTable[Procuct_ID] = "11" )
Put those field in the table with the invoice numbers and set the first one to [Delivery Cost] is not blank and the second to [Delivery Cost] is blank
You can write a measure to sum the total price
Total Invoice Cost = SUM ( YourTable[Price] )
Then a mesure to calculate the delivery cost.
Delivery Cost = CALCULATE ( [Total Invoice Cost], YourTable[Procuct_ID] = "11" )
Put those field in the table with the invoice numbers and set the first one to [Delivery Cost] is not blank and the second to [Delivery Cost] is blank
User | Count |
---|---|
98 | |
76 | |
75 | |
49 | |
27 |