Forum Discussion
brettg
Helper II
8 years agoUse measure as value in visual e.g pie chart
Hi All, Is it possible to use measures as values in visuals such as pie charts, scatter graphs.. I have created measures for the latest test and latest result of each user, and these update w...
v-juanli-msft
Community Support
8 years ago- brettg8 years ago
Helper II
Hi Maggie,
Thank you for taking the time to look into this for me.
This is the measure I am currently using to get the latest result per user:
Latest Result =
VAR User = SELECTEDVALUE('Table'[User])
VAR MaxTest = MAXX(
KEEPFILTERS(VALUES('Table'[User])),
CALCULATE(MAX('Table'[Test Date]))
)RETURN
CALCULATE(SELECTEDVALUE('Table'[Result]), ALLSELECTED('Table'),'Table'[User] = User, 'Table'[Test Date] = MaxTest)
I'm assuming I need a True or False IF statement now to bring back if its the latest test?
Many Thanks,
Brett