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
ringocheng618
Frequent Visitor

Money Inflow and Outflow Question

Hello,

 

I have the following data, obviously the list go on and on:

 

DateFromToAmount
1-1-2021AB$100
1-1-2021BA$200
1-2-2021AC$100

 

If I want to know whether the transactions is an inflow (money going in) or outflow(money going out) for each account, what are some ways that I can achieve that? For instance, the first transaction for person B will have an inflow of $100, and none for output. And A will have outflow of -$100 and and none for inflow. 

 

I can't be creating all these table for each person because I simply have various people in my data. So what are the ways to achieve that? 

 

Thanks in advance.

 

 

 

 

1 ACCEPTED SOLUTION
ryan_mayu
Super User
Super User

@ringocheng618 

please see the attachment below





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

Proud to be a Super User!




View solution in original post

4 REPLIES 4
Ashish_Mathur
Super User
Super User

Hi,

You may download my PBI file from here.

Hope this helps.

Untitled.png


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/
ryan_mayu
Super User
Super User

@ringocheng618 

please see the attachment below





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

Proud to be a Super User!




Hello @ryan_mayu ,

 

Thanks for the fast response, you are a life-saver! I am really new to PowerBi, can you elaborate the logic behind this? I know that you have connect the three tables with cardinality. I just don't quite understand the inflow and outflow measure. For inflow is it like summing the Amount by individual in the "To" column?

@ringocheng618 

There are 3 tables in the model. One is datetime, one is dim_customer and the last is the one you provided. Using the dim_customer to find if the customer is in the FROM column ,if so, that is an output. If the customer is in the To column, that will be an inflow.





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

Proud to be a Super User!




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