Forum Discussion
Extract date from text
- 7 years ago
Hi Anonymous ,
Sorry for the miss direction but when handling with live connections on tabular models some expressions are not valid try the following:
DateFx = RIGHT ( LASTNONBLANK ( 'HFM FX Rate Actual'[FX_DATEKEY], 0 ), 8 )
Regards,
MFelix
Hi Anonymous ,
Since you are using a measure you need to give grouping to your measure try to use the following measure:
DateFx =
RIGHT(SELECTEDVALUE('HFM FX Rate Actual'[FX_DATEKEY]),8)
Regards,
MFelix
Thank you so much for quickly looking into this.
I tried the below, it fails at SELECTEDVALUE, i tried ALLSELECTED instead of SELECTEDVALUE, the error disappeared, however i got an error. "Calculation error in Measure: A table of multiple values was supplied where a single value was expected", can you please help?
DateFx =
RIGHT(SELECTEDVALUE('HFM FX Rate Actual'[FX_DATEKEY]),8- MFelix7 years agoSuper User
Hi Anonymous ,
Try to use the:
DateFx = RIGHT(MAX('HFM FX Rate Actual'[FX_DATEKEY]),8)
Regards,
MFelix
- Anonymous7 years agoNot applicable
It wasnt working and returns the error below. :-(
- MFelix7 years agoSuper User
Hi Anonymous ,
Sorry for the miss direction but when handling with live connections on tabular models some expressions are not valid try the following:
DateFx = RIGHT ( LASTNONBLANK ( 'HFM FX Rate Actual'[FX_DATEKEY], 0 ), 8 )
Regards,
MFelix
- Anonymous7 years agoNot applicable
Thank you so much it worked.