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

Announcements
Q&A with Qlik - Qlik Cloud Migration: Questions about migrating to Qlik Cloud? Catch the latest replay!
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

question about a dual field

Hi,

Month is a dual field. I'd like to use it in a set expression.

{<Month={'TextValue'}>} - this script works fine

e.g. {<Month={'Январь'}>}

{<Month={NumericValue}>} - this doesn't work

e.g. {<Month={1}>}


I need to base my set expression in a numeric value of Month for some reason.


Is it possible?


Thank you in advance,


Larisa

Labels (1)
1 Solution

Accepted Solutions
sasiparupudi1
Master III
Master III

is your month in the format like January,Febrauary,etc?

if yes then this should work

{<Month={"$(=Date(Month(1),'MMMM'))"}>}

View solution in original post

7 Replies
MK_QSL
MVP
MVP

Create two field like below

Month(Date) as Month,

Num(Month(Date)) as MonthID

Now use MonthID in your set expression.

sasiparupudi1
Master III
Master III

try

{<Month={$(=Month(1))}>}

Anonymous
Not applicable
Author

it results in null.

prabhu0505
Specialist
Specialist

Pls try.

{<Num(Month)={NumericValue}>}

Anonymous
Not applicable
Author

I results in error

sasiparupudi1
Master III
Master III

is your month in the format like January,Febrauary,etc?

if yes then this should work

{<Month={"$(=Date(Month(1),'MMMM'))"}>}

sasiparupudi1
Master III
Master III

Hi

Sorry, I think the expression should be

date(makedate(year(today()),11),'MMMMM')

{<Month={"$(=date(makedate(year(today()),2),'MMMMM'))"}>}



hth

Sasi