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

Power BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. 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
June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

Find out what's new and trending in the Fabric community.