Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Posting on Qlik Community is temporarily paused for some users. Thank you for patience and we'll update you soon!
cancel
Showing results for 
Search instead for 
Did you mean: 
byrnel0586
Creator
Creator

Replace in Calculated Dimension

Hi all,

I am attempting to replace some text in a field using a calculated dimension and am getting an error. I was doing this in the script previously, but there can be multiple EVENT_DATES and I only want to show the max of them in the message. The expression will work in a text object. I have also attached a screenshot.  Any help is appreciated!

=Replace(Replace(FinalMessage1,'Date1',max({<MeasureID>}EVENT_DATE)),'Date2',max({<MeasureID>}DUE_DATE))

Labels (1)
1 Solution

Accepted Solutions
sunny_talwar
MVP
MVP

Try this

=Replace(Replace(FinalMessage1, 'Date1', Max(TOTAL {<MeasureID>} EVENT_DATE)), 'Date2', Max(TOTAL {<MeasureID>} DUE_DATE))

View solution in original post

2 Replies
sunny_talwar
MVP
MVP

Try this

=Replace(Replace(FinalMessage1, 'Date1', Max(TOTAL {<MeasureID>} EVENT_DATE)), 'Date2', Max(TOTAL {<MeasureID>} DUE_DATE))

byrnel0586
Creator
Creator
Author

Thank you!!!