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

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes! Register now.

Reply
Anonymous
Not applicable

DAX formula need help

 

Hello, 

 

I put these tables below to simplify my issue. 

I have 2 tables, with a one to many relationship. 

I need to write a DAX formula to find the sum of all increases in cash between 9/12/2019 and 9/18/2019.

Here, Lola lost 2 USD, and Paul won 30. Thus, the DAX formula should return 30 (which is 60-30). 

 

I know that I need to compare the oldest balance record for each person with the newest balance, but I can't find a proper DAX formula to make this work.

 

Any help is more than welcome. 

2019-09-12 14_57_20-Book1.xlsx - Excel.png

Thanks. 

 

Nathan

 

 

1 ACCEPTED SOLUTION
Nathaniel_C
Community Champion
Community Champion

Hi @Anonymous ,

I changed your data little bit to make sure that I was picking up hte correct date and balance for each.

If this solves your issues, please mark it as the solution, so that others can find it easily. Kudos are nice too.
Nathaniel

 

Fifo1.PNGFifo2.PNG

fifo4.PNG

fifo3.PNG

 

 

 

 

 

 

 

 

 

 

 

 

Measures

fifo5.PNG

 





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

Proud to be a Super User!




View solution in original post

1 REPLY 1
Nathaniel_C
Community Champion
Community Champion

Hi @Anonymous ,

I changed your data little bit to make sure that I was picking up hte correct date and balance for each.

If this solves your issues, please mark it as the solution, so that others can find it easily. Kudos are nice too.
Nathaniel

 

Fifo1.PNGFifo2.PNG

fifo4.PNG

fifo3.PNG

 

 

 

 

 

 

 

 

 

 

 

 

Measures

fifo5.PNG

 





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

Proud to be a Super User!




Helpful resources

Announcements
September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 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.