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

Variable

Dear Friends

I have created a variable

vN1=Num(Date(Makedate(2017,12,01),'YYYYMM'))   Expected result=201712

How ever it  does return the expected result. Kindly Help to get it corrected

2 Solutions

Accepted Solutions
sunny_talwar

Like I mentioned in the other thread... try with Num#() instead of Num()

vN1 = Num#(Date(Makedate(2017,12,01),'YYYYMM'))

View solution in original post

Gysbert_Wassenaar

Remove the Num function. That just removes the formatting that the date function first added. You can use the num# function, but since you assign it to a variable it will make no difference if you do that or not. The variable will contain 201712 in either case.


talk is cheap, supply exceeds demand

View solution in original post

2 Replies
sunny_talwar

Like I mentioned in the other thread... try with Num#() instead of Num()

vN1 = Num#(Date(Makedate(2017,12,01),'YYYYMM'))
Gysbert_Wassenaar

Remove the Num function. That just removes the formatting that the date function first added. You can use the num# function, but since you assign it to a variable it will make no difference if you do that or not. The variable will contain 201712 in either case.


talk is cheap, supply exceeds demand