Skip to main content
Woohoo! Qlik Community has won “Best in Class Community” in the 2024 Khoros Kudos awards!
Announcements
Nov. 20th, Qlik Insider - Lakehouses: Driving the Future of Data & AI - PICK A SESSION
cancel
Showing results for 
Search instead for 
Did you mean: 
newbie_sm
Contributor III
Contributor III

formula for Month-on-Month measure in trend line chart

I am trying to create a Month-on-Month trend line chart with the following formula but no data is generated.

(

Count ({$<[DTE_YR-MTH]={"=$(=Max([DTE_YR-MTH]))"}>} Distinct[User Name])

/

Count({$<[DTE_YR-MTH]={"=$(=Max([DTE_YR-MTH])-1)"}>} Distinct[User Name])

)

-1

 

Please advise what is wrong with this expression, thanks

 

Labels (1)
2 Replies
BrunPierre
Partner - Master
Partner - Master

Hi, could it be that the month field is interpreted as text? Try something like this.

[DTE_YR-MTH]={'$(=Date(Max(Date#([DTE_YR-MTH],'MMMM')),'MMMM'))'}

newbie_sm
Contributor III
Contributor III
Author

this doesn't work