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

Group by order by

Hi evrybody,

 

i need your help please.

when i write this code :

Load
AppelDate as DateC,
CompteurAppel as AppelC,
ParkingSortie as ParkC
Resident Conversation
where not isnull (ParkingSortie)
Order by AppelDate;

clipboard_image_0.png

i would like to have a total by DateC then i write :

Load
AppelDate as DateC,
sum(CompteurAppel) as NombreAppel,
ParkingSortie as ParkC
Resident Conversation
where not isnull (ParkingSortie)
Order by AppelDate

Group by AppelDate;

But it dosn t work, i don't understand what is wrong, can someone help me please ?

 

i tried also :

 

TableAppels:

load *,
sum(AppelC) as NombreAppel
Group by DateC;


Load
AppelDate as DateC,
CompteurAppel as AppelC,
ParkingSortie as ParkC
Resident Conversation
where not isnull (ParkingSortie)
Order by AppelDate;

Probably not difficult but...

 

Thanks in advanced

 

C.

Labels (1)
1 Solution

Accepted Solutions
dplr-rn
Partner - Master III
Partner - Master III

You need to group by all the columns that you are not aggregating. 

E.g. ParkingSortie

 

If you don't want to do that. Remove parkingsortie and load with group by and join it to main table

Load
AppelDate as DateC,
sum(CompteurAppel) as NombreAppel
Resident Conversation
where not isnull (ParkingSortie)
Order by AppelDate

View solution in original post

2 Replies
dplr-rn
Partner - Master III
Partner - Master III

You need to group by all the columns that you are not aggregating. 

E.g. ParkingSortie

 

If you don't want to do that. Remove parkingsortie and load with group by and join it to main table

Load
AppelDate as DateC,
sum(CompteurAppel) as NombreAppel
Resident Conversation
where not isnull (ParkingSortie)
Order by AppelDate

QlikTonic
Contributor III
Contributor III
Author

Thanks a lot !

Have a nice day