Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
jmvilaplanap
Specialist
Specialist

Error in calculated dimension

Hi all

I have a mistery problem in a pivot table

Capture.PNG

The formulas are the same as the field names, and when I try to use "min(requesttime)" it throw an error. I think that the result of this dimension must to be at least the same of the previous column (later I will try to get the real min of each key)

Anyone can help me?

Thanks

19 Replies
kaushiknsolanki
Partner Ambassador/MVP
Partner Ambassador/MVP

Hi,

It will give you Min for each dimension you specify in aggregation function.

If you need overall min then use it in expression like Min({1}requesttime)

Regards,

Kaushik Solanki

Please remember to hit the 'Like' button and for helpful answers and resolutions, click on the 'Accept As Solution' button. Cheers!
jmvilaplanap
Specialist
Specialist
Author

I need the min by each key, but this I can solve it with a TOTAL, I think. My problem now is to obtain a value in this dimension (probably will be the same value as in the previous column)

Kushal_Chawda

your expression seems wrong

aggr(min(requesttime),Key)

Kushal_Chawda

or use expression

=sum({<requesttime = {"$(=timestamp(min(requesttime),'DD/MM/YYYY hh:mm:ss'))"}>} Value)

jmvilaplanap
Specialist
Specialist
Author

Nope

Capture.PNG

Kushal_Chawda

In aggr expression, use Key instead key, Field name is case sensitive

jmvilaplanap
Specialist
Specialist
Author

It works, but only for a one key (if the key is filtered)

But with this expression:

  • sum({<requesttime = {"$(=min(requesttime))"}>} 1)

Now I need to modify the expression to do it for each key.

Thanks

jmvilaplanap
Specialist
Specialist
Author

It works!

When you modify a lot of times the expression, finally you make mistakes.

Thanks!

kaushiknsolanki
Partner Ambassador/MVP
Partner Ambassador/MVP

See the attached file it works.

Regards,

Kaushik Solanki

Please remember to hit the 'Like' button and for helpful answers and resolutions, click on the 'Accept As Solution' button. Cheers!
Kushal_Chawda

You need to provide time format in your expression

try below

Assuming requesttime time format is DD/MM/YYYY hh:mm:ss

sum({<requesttime = {"$(=min(total <Key> requesttime),'DD/MM/YYYY hh:mm:ss'))"}>} 1)