Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.
Good morning, I have a problem with a matrix.
In this matrix there is the value of the price for month
Month Price
01 10
02 20
03 20
04 50
05 50
I have also a matrix with the cumulative sum but if i use a filter for the month and I select the month 03 04 05 the value for the month 03 is the sum from month 01 to 03.
Month Price
03 50
04 100
05 100
Is possible exclude the month's not selected?
Solved! Go to Solution.
Price Total Cumulate : =
CALCULATE (
SUM ( Data[Price] ),
FILTER ( ALLSELECTED ( Months ), Months[Month] <= MAX ( Months[Month] ) )
)
https://www.dropbox.com/s/164lhkihvp8tw3b/stefano.pbix?dl=0
Hi @Stefano_0 ,
You will need ALLSELECTED() function in the formula.
Measure = CALCULATE(SUM('Table'[Price]),FILTER(ALLSELECTED('Table'[Month]),'Table'[Month]<=MAX('Table'[Month])))
Best Regards,
Jay
I have set the month date with a new column
Month Price
03 20
04 50
05 50
Price Total Cumulate : =
CALCULATE (
SUM ( Data[Price] ),
FILTER ( ALLSELECTED ( Months ), Months[Month] <= MAX ( Months[Month] ) )
)
https://www.dropbox.com/s/164lhkihvp8tw3b/stefano.pbix?dl=0
perfect, everything works thanks !!!
Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!
Check out the October 2025 Power BI update to learn about new features.