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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
arusiva89
Contributor III
Contributor III

Current vs previous period in table

Hi, 

  I am trying to show the current vs previous month record irrespective of the date selection.There is a issue in it ,when I compare the Feb vs Jan ,it is taking only 28 days instead of 31 days.Any idea to get all values in january?

 

arusiva89_0-1596690655339.png

 

6 Replies
arulsettu
Master III
Master III

Can you share your sample app

arusiva89
Contributor III
Contributor III
Author

I don't have the desktop version,I will explain the logic used.I have set the flag in load script (addmonths(dt-1) and used the flag in set expression for previous month like (Sum({<Flag={'x''},Date=>}measure) 

arulsettu
Master III
Master III

Try ignoring the Month field in the expression

Sum({<Flag={'x''},Date=,Month=>}measure) 

arulsettu
Master III
Master III

(Sum({<Flag={'x''},Date=,Month=>}measure)

arusiva89
Contributor III
Contributor III
Author

It dint work

arulsettu
Master III
Master III

Provide some sample data to replicate the issue