Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
sona_sa
Creator II
Creator II

Label Header Expression

Hi Team,

I want to change my Header - On Behalf of get selected field.

If user select the Period, then =GetFieldSelections(Period) will show in header, else Message will be like - 'Please select the period'.

Thanks

Labels (1)
2 Replies
JordyWegman
Partner - Master
Partner - Master

Hi,

Try to use:

If(Count(Distinct Period) = 1, GetFieldSelections(Period), 'Please select the period')

Jordy

Climber 

Work smarter, not harder
EliGohar
Partner - Creator III
Partner - Creator III

@JordyWegman purposed the right solution but take into account that if you select more than one value for Period then you'll get "please select the period" text.

Therefore, I suggest to change the condition in Jordy's expression to be:

If(Count(Distinct Period) > 0, GetFieldSelections(Period), 'Please select the period')

This expression will support multiple selections for Period field.

Eli.