Forum Discussion
Help with Measure
- 4 years ago
Hi, Anonymous
In the previous table I set the Value of Altona North and Armadale to be the same as Alexandria to save time, so there will be no change when filtering.
I have adjusted the data, please download the latest attachment.
Best Regards,
Community Support Team _Charlotte
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
amitchandak thanks so much for your solution
However, I don't need a measure in the date table but need to write a measure something similar to this:
I've written this formula, it's a bit close but yet far 🙂
- amitchandak4 years agoSuper User
Anonymous , lastnonblank should work , just at [Date] <= max([date]) //with table name
to ensure only past dates are taken
like
CALCULATE (LASTNONBLANK ('CQF'[Date],CALCULATE ( AVERAGE( CQF[Value] ) ) ), filter( ALL ( 'DIM-Date' ), 'DIM-Date' [Date] = max( 'DIM-Date' [Date] )))
Hope this can help
- Anonymous4 years agoNot applicable
hi amitchandak ,
I'm a bit cconfused now 🙂
Are you able to be a bit more clearer?Thanks so much for your time again
- Anonymous4 years agoNot applicable
hi amitchandak
when I use the following formula the format goes to date format, and unable to change it to %
test 3 = CALCULATE (LASTNONBLANK ('CQF'[Date],CALCULATE ( AVERAGE( CQF[Value] ) ) ), filter( ALL ( 'DIM-Date' ), 'DIM-Date' [Date] <= max( 'DIM-Date' [Date] )))