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

Announcements
Posting on Qlik Community is temporarily paused for some users. Thank you for patience and we'll update you soon!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Calculated dimension

Hello, guys!

I need to create a calculated dimension  with condition in my straight table.

I've created the dimension like  :

=aggr(if(Sum({<Month_Date={"=$(=max(Month_Date))"},Month_name=>} Bench_Data)>0,

Sum(Bench_Data)/$(vNoOfMonths)),Emp_name)

But that part with set analysis doesnt seem to work.

May be I have some syntax error?

Please correct me!

Labels (1)
1 Solution

Accepted Solutions
sunny_talwar
MVP
MVP

Try this may be:

=Aggr(If(Sum({<Month_Date={"$(=Max(Month_Date))"}, Month_name=>} Bench_Data) > 0,

Sum(Bench_Data)/$(vNoOfMonths)), Emp_name)

View solution in original post

1 Reply
sunny_talwar
MVP
MVP

Try this may be:

=Aggr(If(Sum({<Month_Date={"$(=Max(Month_Date))"}, Month_name=>} Bench_Data) > 0,

Sum(Bench_Data)/$(vNoOfMonths)), Emp_name)