Good morning,
Looking for a measure that can sum a value, in the period selected (also time series graph), of the last time data available. The below image shows the yellow values I'm after. I want it to dynamically always pull the latest available (but not data that would be beyond the date selected).
Just as an FYI, I've tried several last date, max date, measures/formulas from this forum & SQLBI to no avail.
Any tips? Thoughts? Help!?
Thank you & Kindly,
James
Solved! Go to Solution.
Hi @Jkaelin ,
I created a sample you can have a try.
Table 2 = CALENDARAUTO() Month = MONTH('Table 2'[Date])
Month = MONTH('Table'[Date]) Measure = VAR a = SELECTEDVALUE ( 'Table 2'[Month] ) RETURN IF ( ISFILTERED ( 'Table 2'[Month] ), CALCULATE ( SUM ( 'Table'[Value] ), FILTER ( 'Table', 'Table'[Month] = a || 'Table'[Month] = CALCULATE ( MAX ( 'Table'[Month] ), ALLEXCEPT ( 'Table', 'Table'[City] ) ) && CALCULATE ( MAX ( 'Table'[Month] ), ALLEXCEPT ( 'Table', 'Table'[City] ) ) < a ) ), SUM ( 'Table'[Value] ) )
Best Regards,
Xue
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @Jkaelin ,
I created a sample you can have a try.
Table 2 = CALENDARAUTO() Month = MONTH('Table 2'[Date])
Month = MONTH('Table'[Date]) Measure = VAR a = SELECTEDVALUE ( 'Table 2'[Month] ) RETURN IF ( ISFILTERED ( 'Table 2'[Month] ), CALCULATE ( SUM ( 'Table'[Value] ), FILTER ( 'Table', 'Table'[Month] = a || 'Table'[Month] = CALCULATE ( MAX ( 'Table'[Month] ), ALLEXCEPT ( 'Table', 'Table'[City] ) ) && CALCULATE ( MAX ( 'Table'[Month] ), ALLEXCEPT ( 'Table', 'Table'[City] ) ) < a ) ), SUM ( 'Table'[Value] ) )
Best Regards,
Xue
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
User | Count |
---|---|
343 | |
156 | |
85 | |
78 | |
44 |
User | Count |
---|---|
404 | |
241 | |
112 | |
110 | |
97 |