Forum Discussion
edhans
6 years agoCommunity Champion
Convert boolean to scalar value?
This might be a simple question but it is eluding me, short of a longer measure (which I have already created), is there a single function to convert boolean field to a scalar value? For example,...
- Anonymous6 years ago
Hi edhans ,
You can use SELECTEDVALUE() function instead of MAX() function.
Last Date Is Validated = CALCULATE(SELECTEDVALUE('Table'[Validated] ),FILTER('Table',LASTDATE('Table'[Date])=DATE(2018,2,1)))Best Regards,
Jay
Community Support Team _ Jay Wang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Anonymous
6 years agoNot applicable
Hi edhans ,
You can use SELECTEDVALUE() function instead of MAX() function.
Last Date Is Validated = CALCULATE(SELECTEDVALUE('Table'[Validated] ),FILTER('Table',LASTDATE('Table'[Date])=DATE(2018,2,1)))
Best Regards,
Jay
Community Support Team _ Jay Wang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
edhans
6 years agoCommunity Champion
Thank you Jay. SELECTEDVALUE() seems to be exactly what I was looking for in this instance.