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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
nathanprats
Frequent Visitor

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
Super User
Super User

Hi @nathanprats ,

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
Super User
Super User

Hi @nathanprats ,

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
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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

Top Solution Authors