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: 
kiansin
Contributor
Contributor

Max year function issue

Hi , 

kiansin_0-1662712674304.png

I have a expression script as above : 

Sum ( {<SalesPeriodYearMth_DocDate={">=$(=Date(AddMonths(max({<Source={'Order Entered'}>} SalesPeriodYearMth_DocDate),-12), 'YYYYMM'))<=$(=Date(AddMonths(max({<Source={'Order Entered'}>} SalesPeriodYearMth_DocDate),0),'YYYYMM'))"}>} EURSales)

My expected output is EUR sales from year period "202111" until "202211"

(Current  year period is "202211" and I need the table rolling by 13months hence initial by "202211")

--------------------------------------------------------------------------------

kiansin_1-1662712928097.png

Once I was selected "Yes" from dimension "cyclone"

the year period auto changed to "202110 "  until "202210" instead of "202111" until "202211"

it supposed to show the Invoiced from year period "202111" to "202211",

but it didn't , why ?

------------------------------------------------------------------------------------------------------------

kiansin_2-1662713136480.png

As you can see as above :

It has data with "Cyclone" was equal to "Yes " in year period "202211" 

But when I selected "yes" from column cyclone , it automatically ignore the year period "202111" and end with "202110"

Why?

Could anyone help on this issue please ?

Thanks in advance !!

 

Labels (2)
0 Replies