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

Use number of months up to today in Set analysis

Hi,

Im trying to make a forecast simply by taking the sum divide with number of months up till today and the multiply with 12.

But I cant get below to work, what is it Im missing?

[code]

=(sum({$<%Date=,Vecka=, [30minCHlID]={'73'}>} Value) / max({<%Date={$(=vToday)}>} Month) ) *12

[/code]

1 Solution

Accepted Solutions
sunny_talwar

May be try this

=(sum({$<%Date=,Vecka=, [30minCHlID]={'73'}>} Value) / max({<%Date={"$(=vToday)"}>} Month) ) *12

View solution in original post

4 Replies
sunny_talwar

What is the issue that you are running into?

t_hylander
Creator
Creator
Author

Im getting;

"Error: Error in set modifier ad hoc element list: ',' or ')' expected"

But I cant see whats wrong.

sunny_talwar

May be try this

=(sum({$<%Date=,Vecka=, [30minCHlID]={'73'}>} Value) / max({<%Date={"$(=vToday)"}>} Month) ) *12

t_hylander
Creator
Creator
Author

Ive tried alot...but apparently not that.

Thanks!