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

Announcements
Join us to spark ideas for how to put the latest capabilities into action. Register here!
cancel
Showing results for 
Search instead for 
Did you mean: 
nathan_roadshow
Contributor
Contributor

Calling a Month to Num in Set Analysis

Hi all,

 

I'm trying to return a sales by month on the basis as below:

If Calendar_Num (6,7,8) = Calendar Month variable, return the Net Sales for that

Sum({<Calendar_Num={"$(vCalendarMonth)"}>}[Net Sales Units])

 

However this returns 0, any idea why?

2 Replies
Taoufiq_Zarra

@nathan_roadshow  can you share a sample data and the expected output

Regards,
Taoufiq ZARRA

"Please LIKE posts and "Accept as Solution" if the provided solution is helpful "

(you can mark up to 3 "solutions") 😉
nathan_roadshow
Contributor
Contributor
Author

Hi @Taoufiq_Zarra ,

 

Please see below:

For example, I would like to return the Month's sales based on the month.

For example, my variable is = Num(Month(Today())).

 

In the table,  this does not return the sales for NET sales.

--- Sum({<Calendar_Num={'5'}>}[Net Sales Units]) ----

For example, Sum({<[Material Desc]={'A Star is Born'},[=If(Num(Month(Today()))=Calendar_Num,'Y','N')]={'Y'}>}
[Net Sales Units]) will return the sales. But the above does not.

 

See below.

nathan_roadshow_0-1628663724738.png