Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

nested replace in eazybi

devashree ma May 12, 2020

I have a data in eazybi and it is a grid data. 

Example: 1,2,3

I need the data to be replace as a,b,c

 

I used replace but it replaces only 1 as a but nested replace is not working

 

Thanks,

Devashree

1 answer

0 votes
Zane eazyBI Support
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
June 1, 2020

Hi @devashree ma,

Yes, MDX unction Replace() iterates through a list of values only once and replace only one item at the time. To make this work, you might want to use Replace() function within itself like this:

Replace(
  Replace(
    Replace(
--initial value or an empty string if a value is missing at all
      CoalesceEmpty([Measures].[Property with values 123],""),
      "1","a"),
    "2","b"),
  "3","c"
)

 

Best,
Zane / support@eazyBI.com

Suggest an answer

Log in or Sign up to answer