Forum Discussion
Anonymous
1 year agoNot applicable
ISINSCOPE Not Returning Date
I'm creating this matrix and when I use the ISINSCOPE function to return a date value, it is resulting in a number. The numbers are supposed to match the date next to it. In theory I would...
- 1 year ago
hi Anonymous ,
try like:
measure =
FORMAT(SWITCH(...), "mm/dd/yyyy")
- Anonymous1 year ago
Hi All,
Firstly FreemanZ thank you for your solution!
And Anonymous,I tried to modify your code a little bit hope it helps!Base Start Testing = SWITCH( TRUE(), ISINSCOPE('Query'[ActivityName]), BLANK(), ISINSCOPE('Query'[Merged]), FORMAT(FIRSTDATE('Query'[Date]),"MM-DD-YYYY"), ISINSCOPE('Query'[Division]), BLANK(), BLANK() )Base Start Testing(copy) = SWITCH( TRUE(), ISINSCOPE('Query'[ActivityName]), BLANK(), ISINSCOPE('Query'[Merged]), CONVERT(FIRSTDATE('Query'[Date]),STRING), ISINSCOPE('Query'[Division]), BLANK(), BLANK() )Hope it helps!
Best regards,
Community Support Team_ Tom ShenIf this post helps then please consider Accept it as the solution to help the other members find it more quickly.
FreemanZ
1 year agoSuper User
hi Anonymous ,
try like:
measure =
FORMAT(SWITCH(...), "mm/dd/yyyy")