Forum Discussion

adoalan's avatar
adoalan
Icon for Helper III rankHelper III
3 years ago
Solved

TRIM the data from a measure

Hi   I have this forumla to trim the data but I have one item which I still need to remove '-U'.   How can I include that in the same formula let's say to trim also the data where '-U' is identif...
  • PhilipTreacy's avatar
    3 years ago

    Hi adoalan 

     

    Change the RETURN statement to this

     

    RETURN SUBSTITUTE(MID(EvalString, 1, LenTo), "-U", "")

     

     

    Regards

     

    Phil

  • PhilipTreacy's avatar
    PhilipTreacy
    3 years ago

    Hi adoalan 

     

    The 2nd image shows that you have many different Codes in your table, so when you are only seeing 1 row when the Final 1 measure isn't included, this may be because of some other filtering or aggregation on that visual.

     

    The measure isn't duplicating data, that data is there, it's just not shown in your first visual.

     

    Regards

     

    Phil