The ultimate Microsoft Fabric, Power BI, Azure AI, and SQL learning event: Join us in Stockholm, September 24-27, 2024.
Save €200 with code MSCUST on top of early bird pricing!
Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started
Greeting Community ,
I have an exemple of data of table :
Product | QTY | Date |
P1 | 12 | 2021-5 |
P1 | 15 | 2021-6 |
P1 | 16 | 2021-7 |
I want to get a column or a table containing the sum of the current month of each row and all the previous months :
Product | QTY | Date |
P1 | 12 | 2021-5 |
P1 | 17 | 2021-6 |
P1 | 34 | 2021-7 |
for n Product and n previous Month/Year
Best Regards and Thank You for you Help
Solved! Go to Solution.
@VFPowerBI , Not sure how 12 + 15 = 17.
But try a new column like
sumx(filter(Table, [product] =earlier([product]) && [Date] <=earlier([Date])),[QTY])
@VFPowerBI , Not sure how 12 + 15 = 17.
But try a new column like
sumx(filter(Table, [product] =earlier([product]) && [Date] <=earlier([Date])),[QTY])
Thank you it worked .
Yes, 12+15 = 27 my bad
Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.
Check out the August 2024 Power BI update to learn about new features.
User | Count |
---|---|
113 | |
83 | |
73 | |
49 | |
42 |
User | Count |
---|---|
140 | |
113 | |
73 | |
64 | |
62 |