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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Kannan4444
Helper I
Helper I

How to calculate NET EXPORTS. Plesae help

Guys, i have used below measure to caculate Total exports and Total imports. i want to see Net exports.

Same for Loadport as well.

DischargePortQuantity =
CALCULATE(
    SUM(BaselineView[KT]),
    FILTER(
        BaselineView,
        BaselineView[DischargePort] IN VALUES(BaselineView[DischargePort])
    )
)

I have Load port and Discharge port in a separte column. 2 separate slicers for Load port and Discharge port, with Edit interaction have made sure load port slicer changes doesnt impact the discharge port chat.

Now i need to calculate NET exports. Please help 😞

Kannan4444_0-1724767371357.png

 

2 REPLIES 2
Kannan4444
Helper I
Helper I

I already have the measure created like the one you mentioned for export and import, but still am not able to see the NET exports, its BLANK 😞

rajendraongole1
Super User
Super User

Hi @Kannan4444 - you have measures to calculate Total Exports and Total Imports. Based on your provided measure for DischargePortQuantity

change the table and column names as per your model . 

 

TotalExports =
CALCULATE(
SUM(BaselineView[KT]),
FILTER(
BaselineView,
BaselineView[DischargePort] IN VALUES(BaselineView[DischargePort])
)
)

 

For Total Imports, if there is any filters conditions you can apply assuming loadport here

TotalImports =
CALCULATE(
SUM(BaselineView[KT]),
FILTER(
BaselineView,
BaselineView[LoadPort] IN VALUES(BaselineView[LoadPort])
)
)

 

calculate Net Exports, subtract the Total Imports from the Total Exports

NetExports =[TotalExports] - [TotalImports]

Hope this helps. 

if any share some sample data to analyse further.





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!





Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.