Check your eligibility for this 50% exam voucher offer and join us for free live learning sessions to get prepared for Exam DP-700.
Get StartedDon't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.
Hey all,
Is it possible to add up previous numbers in a column if they are at an earlier date by item code.
For example,
Item Code | date | Quantity | New Column |
a | 01/01/23 | 10 | 10 |
a | 03/01/23 | 15 | 25 |
a | 06/01/23 | 5 | 30 |
a | 11/01/23 | 20 | 50 |
b | 05/01/23 | 30 | 30 |
b | 15/01/23 | 25 | 55 |
Hope this makes sense. Let me know if you need anymore information.
Thanks
Nathan
Solved! Go to Solution.
Hi,
Please check the below picture and the attached pbix file.
It is for creating a new column.
Expected result CC =
SUMX (
WINDOW (
1,
ABS,
0,
REL,
SUMMARIZE ( Data, Data[Item Code], Data[date], Data[Quantity] ),
ORDERBY ( Data[date], ASC ),
KEEP,
PARTITIONBY ( Data[Item Code] )
),
Data[Quantity]
)
If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.
Hi,
Please check the below picture and the attached pbix file.
It is for creating a new column.
Expected result CC =
SUMX (
WINDOW (
1,
ABS,
0,
REL,
SUMMARIZE ( Data, Data[Item Code], Data[date], Data[Quantity] ),
ORDERBY ( Data[date], ASC ),
KEEP,
PARTITIONBY ( Data[Item Code] )
),
Data[Quantity]
)
If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.
That Worked!!
Thank you heaps
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.
User | Count |
---|---|
117 | |
84 | |
49 | |
38 | |
28 |
User | Count |
---|---|
188 | |
76 | |
73 | |
54 | |
42 |