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

Announcements
Discover how organizations are unlocking new revenue streams: Watch here
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!

1 Solution

Accepted Solutions
sunny_talwar

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

Try this may be:

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

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