Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Learn more

Reply
Syndicate_Admin
Administrator
Administrator

Tailor-made issues and related tables

Good afternoon, I would like to consult for something very specific but perhaps simpler than it seems.

In summary I have 2 tables:

1. Where sales orders and general sales data are recorded, specificity of the kilos delivered

2. The costs associated with each sales order are recorded, for 1 sales order there can be many associated costs depending on the breakdown one wants to use, in my case generally for each sales order there are 3 costs, ground cost, air cost, and documentary cost (associated with air transport)

Here are my two sample tables:

Table 1:

PVKilosDestinationDateSMEANA
15000CHINA442072
22000USA442072
33000USA442082
42500CHINA442082
58000PERU442092



Table 2:

PVTRANSPORT TYPETRANSPORT COMPANYCOST TYPECost
1103GLATransport800
2103GLATransport200
1104LatamTransport3000
2104QatarTransport2500
1104ARTURO PEREZDocumentary300
2104ARTURO PEREZDocumentary300
3103VASQUEZTransport600
4103VASQUEZTransport300
3104QatarTransport3000
4104LatamTransport2500
3104ARTURO PEREZDocumentary300
4104ARTURO PEREZDocumentary300
5103GLATransport800
5104LatamTransport6000
5104ARTURO PEREZDocumentary300

The measure I want in general is to calculate the cost per kilo ($/kg), and that I can use it for the different filters in the cost table, for example, wanting to see by type 103 transport, its rates,

TRANSPORT COMPANYSum of COSTkilos2•/kg
CONTOPSA800205000,04
GLA1000205000,05
VASQUEZ900205000,04
Total general2700205000,13

I can't understand why for each tranposrte it says that it is 20500 kilos, and therefore mis calculates the rate, it should be for Contopsa only 8000 kilos (since the contopsa transport only carries the PV 5), for Vasquez 5500 kilos since it only carries the PV 3 and 4,

Could you help me understand what I'm doing wrong? I need to create another table to join both?, I'm connecting both tables just by the PV

Thank you very much, my cel is 56981598377, I am available to receive feedback by wsp if you like.

1 REPLY 1
Anonymous
Not applicable

Hello @Syndicate_Admin 
You just simply drag the kilos column and make it don't summarize or use the cross filter.

CALCULATE(
SUM(Kilos[Kilos]),
CROSSFILTER(Kilos[PV], Transport[PV], Both)
)

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors