Skip to main content
Announcements
Join us at Qlik Connect for 3 magical days of learning, networking,and inspiration! REGISTER TODAY and save!
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