March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early bird discount ends December 31.
Register NowBe one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now
Hi,
I have the below table where I would like to have a measure that is sum the remaining month number.
The FY is starting at 2020.04 and end at 2021.03
The MTH left shows the remains number of month from the fiscal year.
For example we are now in December 202012(Monat) and I want a measure that sum the remaining mth number in this case this month and the remaining months (Mth left 3+2+1+0) = 6
January would be = 3
I
Hi @v-eqin-msft
Thank your for your help, I tried the above measures and it seems like it's sum up every single rows.
I have 81744 rows and the column mth left 12 distinct values
Hi @Austinehype ,
You could use the following formula:
Measure =
CALCULATE (
SUM ( 'Table'[Mth left] ),
FILTER ( ALL ( 'Table' ), 'Table'[Mth left] <= MAX ( 'Table'[Mth left] ) )
)
Column =
CALCULATE (
SUM ( 'Table'[Mth left] ),
FILTER ( ALL ( 'Table' ), 'Table'[Date] >= EARLIER ( 'Table'[Date] ) )
)
Or you could add a Index column firstly and then use:
Measure 2 =
CALCULATE (
SUM ( 'Table'[Mth left] ),
FILTER ( ALL ( 'Table' ), 'Table'[Index] >= MAX ( 'Table'[Index] ) )
)
My visualization looks like this:
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Best Regards,
Eyelyn Qin
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.
Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.
User | Count |
---|---|
123 | |
85 | |
85 | |
70 | |
51 |
User | Count |
---|---|
205 | |
157 | |
97 | |
79 | |
69 |