Power BI is turning 10, and we’re marking the occasion with a special community challenge. Use your creativity to tell a story, uncover trends, or highlight something unexpected.
Get startedJoin us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.
Hello All,
I want to achieve cumulative growth of Product with respective to Year-Month. I am able to achieve it with respect to Year-Month but when I try to achieve it based on other dimension like Product, my logic fails. I am sharing a simple example in the screenshot
Kindly let me know if there is a way to achieve this, also will the logic apply to Product-->Sub-Product-->Year-Month
Thank you for your time
Warm Regards
SK
Solved! Go to Solution.
Hi, @sshantaram
To create a measure like this:
Measure =
CALCULATE (
SUM ( 'Table'[Sales] ),
FILTER (
ALLEXCEPT ( 'Table', 'Table'[Product] ),
'Table'[Date] <= MAX ( 'Table'[Date] )
)
)
Result:
Please refer to the attachment below for details
Hope this helps.
Best Regards,
Community Support Team _ Zeon Zheng
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi, @sshantaram
To create a measure like this:
Measure =
CALCULATE (
SUM ( 'Table'[Sales] ),
FILTER (
ALLEXCEPT ( 'Table', 'Table'[Product] ),
'Table'[Date] <= MAX ( 'Table'[Date] )
)
)
Result:
Please refer to the attachment below for details
Hope this helps.
Best Regards,
Community Support Team _ Zeon Zheng
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
@sshantaram , first you need to unpivot the year data. That will give value column
https://radacad.com/pivot-and-unpivot-with-power-bi
You need to have a year table
Create a measure like one below and use in matrix with year and product
calculate(sum(Table[Value]) , filter(allselected(year), Year[Year] <= Max(Year[Year])))
@amitchandak Thank you for your reply. I have used this calculated measure before "calculate(sum(Table[Value]) , filter(allselected(year), Year[Year] <= Max(Year[Year])))" but it only works when you have only Time Dim .. but if you add a Product Dim along with Time Dim, we wont get the result.
Kindly help.
Warm Regards,
SK
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
65 | |
60 | |
51 | |
36 | |
36 |
User | Count |
---|---|
81 | |
72 | |
58 | |
45 | |
44 |