Microsoft Fabric Community Conference 2025, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount.
Register nowThe Power BI DataViz World Championships are on! With four chances to enter, you could win a spot in the LIVE Grand Finale in Las Vegas. Show off your skills.
Dear All,
please, I have the following Dataset and I would like to measure the cumulative sum by month of [YTD_in/out]_
I try the following structure:
Var LastM = SELECTEDVALUE('Y Projection'[Month])
but the Column [Colonna] didn't show any results, but any error too.
Please, How I can Solve?
Solved! Go to Solution.
Please use
=
VAR LastM = 'Y Projection'[Month]
VAR CurrentDepTable =
CALCULATETABLE (
'Y Projection',
ALLEXCEPT ( 'Y Projection', 'Y Projection'[Department] )
)
RETURN
SUMX (
FILTER ( CurrentDepTable, 'Y Projection'[Month] <= LastM ),
'Y Projection'[YTD_IN/OUT]
)
Please use
=
VAR LastM = 'Y Projection'[Month]
VAR CurrentDepTable =
CALCULATETABLE (
'Y Projection',
ALLEXCEPT ( 'Y Projection', 'Y Projection'[Department] )
)
RETURN
SUMX (
FILTER ( CurrentDepTable, 'Y Projection'[Month] <= LastM ),
'Y Projection'[YTD_IN/OUT]
)
Thank You Tamerj1,
It's fine and the value are exact!!!!
User | Count |
---|---|
143 | |
71 | |
69 | |
53 | |
52 |
User | Count |
---|---|
208 | |
94 | |
64 | |
60 | |
57 |