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: 
MS90
Creator
Creator

How to get Current month data in a table from date field

Need to show current month dates in a table ex.                    

Data 

Column A.     Column B 

01 apr 2023.       Ab 

09 may 2023.      Jk

3 March 2023.     Ce 

5 March 2023.      Df 

02 apr 2023.           Eg

06 may 2023.          Gf

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Labels (4)
3 Replies
BrunPierre
Partner - Master II
Partner - Master II

@MS90  Derive the month number in the script.

LOAD *,
Num(Month(Date((Date#(SubField(Capitalize([Column A]),' ',2),'MMM')),'MMM'))) as Month#

Now use this to display current month dates

Only({$<Month#={"$(=Max(Month#))"}>} [Column B])

BrunPierre_0-1680549398221.png

MS90
Creator
Creator
Author

But this need to be shown in dimensions not in measure tab

BrunPierre
Partner - Master II
Partner - Master II

Aggr(Only({$<Month#={"$(=Max(Month#))"}>} [Column B]), [Column B])