Skip to main content
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()))


1 Solution

Accepted Solutions
tresesco
MVP
MVP

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
tresesco
MVP
MVP

=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

tresesco
MVP
MVP

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

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

MayilVahanan

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