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

Announcements
Streamlining user types in Qlik Cloud capacity-based subscriptions: Read the Details
cancel
Showing results for 
Search instead for 
Did you mean: 
TomBond77
Specialist
Specialist

Label expression dynamically

Hi experts

For the label expression of a measure I have this line:

'Actuals YTD ' & [Date.Month]={$(=Max([Date.Month])}

I need to show the Month 'MMM' in the label if user is selecting e.g. 4 month: Jan, Feb, Mar, Apr. It should show 'Apr'.

any ideas?

Thanks, tom

Labels (4)
1 Solution

Accepted Solutions
tresB
Champion III
Champion III

No, that is not the correct direction. 😞

You are trying something like set analysis, which you don't need here, nor it is the right way. In my previous post, I asked to use date field, if you don't have one, try exatly (copy paste) like below:

='Actual YTD ' &  Month(Date#(Max([Date.Month]),'M'))

View solution in original post

4 Replies
tresB
Champion III
Champion III

Try using date field instead, like:

'Actuals YTD ' &  Date(Max(yourDateField), 'MMM')

TomBond77
Specialist
Specialist
Author

not working, it is giving me Jan....independently of Month selection.

TomBond77
Specialist
Specialist
Author

this expression might be the correct direction, but still gives me an error. Any ideas how to fix it? Thank you!

TomBond77_0-1676446619616.png

 

tresB
Champion III
Champion III

No, that is not the correct direction. 😞

You are trying something like set analysis, which you don't need here, nor it is the right way. In my previous post, I asked to use date field, if you don't have one, try exatly (copy paste) like below:

='Actual YTD ' &  Month(Date#(Max([Date.Month]),'M'))