Forum Discussion
Anonymous
7 years agoNot applicable
Summarize table by a DimDate table
I have data like this (you can copy/paste into Enter Data, dates in dd/MM/yyyy): GROUP IN OUT Quantity A 01/01/2018 05/01/2018 1 A 01/01/2018 04/01/2018 1 A 02/01/2018 06/01/2...
v-yuta-msft
7 years agoCommunity Support
Anonymous ,
Each row is a transaction. The table shows when the quantity of something had entered and left each group.
I want the "stock" in each group, each day. So for each day, sum quantity for the rows where
IN <= day && OUT > day
For group A, on 03/01/2018 you have 4 units (1º, 2º, 3º and 5º row, 4º row does not match the condition).
The expected result would be something like:
There's no "day" column in your sample data. Could you clarify more details about your logic?
Community Support Team _ Jimmy Tao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Anonymous
7 years agoNot applicable
Anyone knows how to calculate the stock with this logic in DAX?