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

Announcements
Want to see what's currently in public preview? We've pulled it all together in one place. Check it out here
cancel
Showing results for 
Search instead for 
Did you mean: 
rcorcoran
Creator
Creator

renaming dimension

HI

I have this expression below in a dimension of a straight table to limit the data it brings back.  It works fine but I also want to rename the 3 and 5 to show bed days for Discharges=3 and inpatient for 5 in the chart.  Any help??

thanks

=(if(Discharges='3' or Discharges='5',Discharges,Null()))


Labels (1)
1 Solution

Accepted Solutions
tresB
Champion III
Champion III

I notice now, that you might not need other discharges, then :

=If(Discharges=3, 'Bed Days', If(Discharges=5, 'Impatient' , null()))

View solution in original post

5 Replies
tresB
Champion III
Champion III

=If(Discharges=3, 'Bed Days', If(Discharges=5, 'Impatient' , Discharges))

Not applicable

Hi Rhona,

=if(Discharges='3' , Discharges,

     if (Discharges='5', Inpatient,

          Null()

     ) )

Here is what i understood

or may be you want to modify 3 and 5,  you can use variables

best regards

Chris

tresB
Champion III
Champion III

I notice now, that you might not need other discharges, then :

=If(Discharges=3, 'Bed Days', If(Discharges=5, 'Impatient' , null()))

MayilVahanan
MVP
MVP

Hi

Try like this

Pick(Match(Discharges, 3, 5), 'Bed Days', 'Impatient')

Thanks & Regards, Mayil Vahanan R
Please close the thread by marking correct answer & give likes if you like the post.
rcorcoran
Creator
Creator
Author

thanks tresesco that works great

Rhona