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: 
Not applicable

A problem with max of a field function

Hi, guys!

Please help me find a solution. I have a problem here.\

This is my table:

EmployeeDataAccountDateAccount
Pavel Kovalski1,00Nov 2014
Pavel Kovalski1,00Dec 2014
Pavel Kovalski1,00Jan 2015
Pavel Kovalski1,00Feb 2015
Kirill Abramov0,00Mar 2014
Kirill Abramov0,00Oct 2014
Kirill Abramov0,00Nov 2014
Kirill Abramov0,05Jan 2015
Kirill Abramov0,14Sep 2014
Kirill Abramov0,23Sep 2014
Kirill Abramov0,64Sep 2014
Kirill Abramov0,95Jan 2015
Kirill Abramov1,00Feb 2014

I need to find Max value of DataAccount for each month.

I try like :

Load Employee, DateAccount ,

Max(DataAccount) as Values

Resident Table2

Group By Employee, DateAccount ;

But it doesnt work, it gives me  this :" - " for each eriod . I also tried like Num#(Max(DataAccount)) or Num(Max(DataAccount)), but again no result.

13 Replies
Not applicable
Author

Martin,

yes, it is left aligned. I tried to use your formula but it gives me only 0 as numbers

Not applicable
Author

Also the strange thing is that I made a listbox of DataAccount and it showed me this:

0
-0,01
-0,02
-0,03
-0,04
-0,05
-0,06
0,01
0,02
0,03
0,04
0,05
0,06

For each positive number there is a negative. Why does Qlikview load my values like this? I dont have any negative numbers in my Excel file...

martinpohl
Partner - Master
Partner - Master

Hi Diana,

where are your datas from?

have you tried num#(DataAccount,'#,##')  ?

As I can see all datas are between 0,05 and 1, so maybe they are percentage values.

If I can't script the script edit to get calculateable values use a trick:

change the values to percentage

0,05 = 5

0,65 = 65

1,00 = 100

so that there are no commas.

load the datas and then recalculate them by devide them by 100

load DataAccount/100 as DataAccount

For this value you can calculate the max.

Regards

Not applicable
Author

Martin,

It worked perfectly well! Great. Thank You!