Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
Hello,
I want to aggregate series, I am attaching a picture of my idea, does anyone have an existing solution?
Thanks for your help!! 🙂
Solved! Go to Solution.
Hi, @borniex
You can try the following methods.
Column:
previous part = CALCULATE(MAX('Table'[part]),FILTER('Table',[id]=EARLIER('Table'[id])-1))
judgement = IF([part]=[previous part],1,0)//Determine if the part is the same as the previous id
First part = IF([judgement]=0,1,0)
Max ID = CALCULATE(Max('Table'[id]),FILTER('Table',[id]<=EARLIER('Table'[id])&&[First part]=1))
Sum value = CALCULATE(SUM('Table'[value]),ALLEXCEPT('Table','Table'[Max ID]))
Is this the result you expect?
Best Regards,
Community Support Team _Charlotte
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi, @borniex
You can try the following methods.
Column:
previous part = CALCULATE(MAX('Table'[part]),FILTER('Table',[id]=EARLIER('Table'[id])-1))
judgement = IF([part]=[previous part],1,0)//Determine if the part is the same as the previous id
First part = IF([judgement]=0,1,0)
Max ID = CALCULATE(Max('Table'[id]),FILTER('Table',[id]<=EARLIER('Table'[id])&&[First part]=1))
Sum value = CALCULATE(SUM('Table'[value]),ALLEXCEPT('Table','Table'[Max ID]))
Is this the result you expect?
Best Regards,
Community Support Team _Charlotte
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Thank you very much, I was interested in this solution! Elegant, I thought more complicated 😄
Hi.
You will need to read about the windows function (https://www.sqlbi.com/articles/introducing-window-functions-in-dax). I have never used it, but I understand that it can deal with you scenario.
Greg Oliveira
https://www.linkedin.com/in/gregomelo/
Check out the July 2025 Power BI update to learn about new features.
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
User | Count |
---|---|
19 | |
7 | |
6 | |
5 | |
5 |
User | Count |
---|---|
25 | |
10 | |
10 | |
9 | |
6 |