The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredCompete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.
Hi,
I need to produce a measure that's cumalative as per the weeks.
The summation needs to reset when the new year hits.
Any help would be appreciated.
Solved! Go to Solution.
Hi , I hope you are doing good!
Please try the below solution:
Cumulative Amount =
VAR CurrentYear = MAX('Table'[Year])
VAR CurrentWeek = MAX('Table'[Week])
RETURN
CALCULATE(
SUM('Table'[Amount]),
FILTER(
ALL('Table'),
'Table'[Year] = CurrentYear &&
'Table'[Week] <= CurrentWeek
)
)
Did I answer your question? Mark my post as a solution! Appreciate your Kudos !!
Let's Connect on LinkedIn: https://www.linkedin.com/in/anmol-malviya/?originalSubdomain=in
Subscribe my youtube channel for Microsoft Fabric and Power BI updates: https://www.youtube.com/@AnmolPowerBICorner
Hi , @sm1driver
You can also use Visual Level Calculation Running Sum formula
Go To Three dots in the visual and Select "new calculations" and use below formula
RUNNINGSUM([Amount], HIGHESTPARENT)
For more details check out this : https://learn.microsoft.com/en-us/power-bi/transform-model/desktop-visual-calculations-overview
Thanks so much! Lifesaver!
Hi , I hope you are doing good!
Please try the below solution:
Cumulative Amount =
VAR CurrentYear = MAX('Table'[Year])
VAR CurrentWeek = MAX('Table'[Week])
RETURN
CALCULATE(
SUM('Table'[Amount]),
FILTER(
ALL('Table'),
'Table'[Year] = CurrentYear &&
'Table'[Week] <= CurrentWeek
)
)
Did I answer your question? Mark my post as a solution! Appreciate your Kudos !!
Let's Connect on LinkedIn: https://www.linkedin.com/in/anmol-malviya/?originalSubdomain=in
Subscribe my youtube channel for Microsoft Fabric and Power BI updates: https://www.youtube.com/@AnmolPowerBICorner
User | Count |
---|---|
24 | |
10 | |
8 | |
7 | |
6 |
User | Count |
---|---|
31 | |
12 | |
10 | |
10 | |
9 |