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! Request now

Reply
viralpatel21
Helper II
Helper II

Pivot table powerbi

Hello

 

I am stuck in a dilemma hoping to find some help.

viralpatel21_0-1670599286437.png

 

I was able to create the following table (up to Grand total ) using Matrix but i need to create/display the Surplus Transaction in that way.

 

I guess i need help creating either a column/ measure the following Surplus Transaction.

  • The Surplus Transaction calculate 2 formula 
  • 1) If The transaction Type is Buy and Deposit then Sum USD Amount
  • 2) If the Transaction type is Buy, Sell and Deposit then Sum TxMargin

How could i do this?

 

thanks

viral

2 REPLIES 2
amitchandak
Super User
Super User

@viralpatel21 , I have added an additional row calculation example here. see if that can help

Power BI How to get the P&L formatting right: https://youtu.be/C9K8uVfthUU

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Hello @amitchandak 

 

I tried to attempt this for my data but i cant seem to do it (kind of a newbie in this) in the video your using excel to determine the Total for each and then adding a number.. However im connected straight to a database??

how would i use it?

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