This is best Fabric, Power BI, SQL and AI community event. How do we know? The last event sold out! Save €200 with code FABCMTY200.
Register nowThe Fabric community is upgrading! Read all of the details including the timeline and what you can expect. Learn more
Hello All,
I have a stand alone table in Live connection to tabular model. I am trying to create a report level measure as i dont have access to Tabular model.
I have a column FX_DATEKEY but the value appears like below. I am trying to extract the date from that column, another catch is FX_DATEKEY is read only column.
Current FX rate USD FX_DATEKEY
1.7888 fxrates.br-20120101
I tried, this,
Solved! Go to Solution.
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
Regards
Miguel Félix
Proud to be a Super User!
Check out my blog: Power BI em PortuguêsHi @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
Regards
Miguel Félix
Proud to be a Super User!
Check out my blog: Power BI em PortuguêsThank 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]),8Hi @Anonymous ,
Try to use the:
DateFx = RIGHT(MAX('HFM FX Rate Actual'[FX_DATEKEY]),8)
Regards,
MFelix
Regards
Miguel Félix
Proud to be a Super User!
Check out my blog: Power BI em PortuguêsHi @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
Regards
Miguel Félix
Proud to be a Super User!
Check out my blog: Power BI em PortuguêsThank you so much it worked.
It wasnt working and returns the error below. 😞
Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.
| User | Count |
|---|---|
| 24 | |
| 22 | |
| 20 | |
| 18 | |
| 14 |
| User | Count |
|---|---|
| 44 | |
| 36 | |
| 23 | |
| 20 | |
| 20 |