Skip to main content
Announcements
Global Transformation Awards! Applications are now open. Submit Entry
cancel
Showing results for 
Search instead for 
Did you mean: 
aaronnayan
Creator III
Creator III

Text box - current selections

Hi guys.

I have a text box that shows information when a certain dimension is selected

the code i have used is

=IF(ISNULL(ONLY(BRNAME)),'',ONLY(BRNAME))

However i want to include another two dimensions ("GRNAME","GBNAME")

I know this maybe very simple but could anyone help me do this please?

1 Solution

Accepted Solutions
krishnacbe
Partner - Specialist III
Partner - Specialist III

Sorry, my mistake try below expression

=IF(GetSelectedCount(BRNAME)=1, BRNAME, if(GetSelectedCount(GRNAME)=1, GRNAME, if(GetSelectedCount(GBNAME)=1,GRNAME,'')))

View solution in original post

10 Replies
krishnacbe
Partner - Specialist III
Partner - Specialist III

Try Below Expression

IF(GetSelectedCount(BRNAME)=1, BRNAME, if(GetSelectedCount(GRNAME)=1, GRNAME, if(GetSelectedCount(GBNAME),'')

But This will work only if you have selected one value in the List box.

sunny_talwar

Include them how? May be this?

=IF(ISNULL(ONLY(BRNAME&GRNAME&GBNAME)),'',ONLY(BRNAME & ' ' & GRNAME & ' ' & GBNAME))

Anil_Babu_Samineni

I would suggest you to create composite key for required fields and then use same as you required

Best Anil, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful
aaronnayan
Creator III
Creator III
Author

there is an error in this expression krishna

aaronnayan
Creator III
Creator III
Author

Hi Sunny only when the a value from BRNAME is selected do all the other values show

The fields work in hierarchy

GBNAME  

GRNAME  

BRNAME  

I want it so as soon as a field is selected it will show what dimension has been selected from the 3

krishnacbe
Partner - Specialist III
Partner - Specialist III

Please try this

=IF(GetSelectedCount(BRNAME)=1, BRNAME, if(GetSelectedCount(GRNAME)=1, GRNAME, if(GetSelectedCount(GBNAME),'')))

aaronnayan
Creator III
Creator III
Author

a composite key is not needed ANIL its for aethsetic purposes onlly

aaronnayan
Creator III
Creator III
Author

Hi Krishna very very close! it just does not show GBNAME

krishnacbe
Partner - Specialist III
Partner - Specialist III

Sorry, my mistake try below expression

=IF(GetSelectedCount(BRNAME)=1, BRNAME, if(GetSelectedCount(GRNAME)=1, GRNAME, if(GetSelectedCount(GBNAME)=1,GRNAME,'')))