Skip to main content

New to Qlik Sense

If you’re new to Qlik Sense, start with this Discussion Board and get up-to-speed quickly.

Announcements
Qlik Cloud Maintenance is scheduled between March 27-30. Visit Qlik Cloud Status page for more details.
cancel
Showing results for 
Search instead for 
Did you mean: 
krmvacar
Creator
Creator

Qliksense straight table order by measure change

Hi All,

I have a Straight table and when I press sort by each field, the total data changes. Here, I want my total data not to change, and I just want it to be sorted alphabetically according to the WORKEND field.When I use the aggr function, the total data changes. It gives wrong results.
your help is requested. qvf is attached

I want it to look like this even when my total value is pressed to rank.

 

krmvacar_0-1649234908937.png

 

Best Regards

Labels (3)
1 Solution

Accepted Solutions
GeorgePhilips23
Partner - Contributor III
Partner - Contributor III

Aggregating the Intervals shall solve the problem!

Num(Num#(

Aggr(

if(

Interval(Workend - Timestamp(RangeMax(Above(total Workend,0,3))))<0,

0,

Interval(Workend - if(Workstart<Above(Total Workend),Above(Total Workend),Workstart),'mm')

)

,(Workend,Numeric,Ascending))

))

View solution in original post

4 Replies
JHuis
Creator II
Creator II

Hi change the measure to: (Workend-Workstart)*1440

 

Then nothing changes anymore!

krmvacar
Creator
Creator
Author

hi @JHuis 

 

its not working.  I think you misunderstood my question

GeorgePhilips23
Partner - Contributor III
Partner - Contributor III

Aggregating the Intervals shall solve the problem!

Num(Num#(

Aggr(

if(

Interval(Workend - Timestamp(RangeMax(Above(total Workend,0,3))))<0,

0,

Interval(Workend - if(Workstart<Above(Total Workend),Above(Total Workend),Workstart),'mm')

)

,(Workend,Numeric,Ascending))

))

krmvacar
Creator
Creator
Author

hi @GeorgePhilips23 

its working thank you so much