Skip to main content
Announcements
Introducing Qlik Answers: A plug-and-play, Generative AI powered RAG solution. READ ALL ABOUT IT!
cancel
Showing results for 
Search instead for 
Did you mean: 
qlikeers
Creator II
Creator II

Load script - grouping / distinct

Hi!

I have a question because I can't find a solution; I have a fairly large source table that has a lot of similar records. When I try to do distinct or group, it doesn't work. Why?

I will add that I use "resident" when loading.

Example:
Columns: Day, Month, Qty, Value

Load
      month,
      sum(Value) as SumOfValue
Resident TBL
group by Month;

This doesn't work - the Month value should be unique in the result. But it is not. What could be the reason?

Labels (3)
1 Solution

Accepted Solutions
qlikeers
Creator II
Creator II
Author

I think I know why, "Month" was created with the format() function. Converting to text solved the problem.

View solution in original post

3 Replies
hic
Former Employee
Former Employee

It's case sensitive. "Month" is not the same as "month".

qlikeers
Creator II
Creator II
Author

Hi @hic , thanks!

Of course, my mistake in the description.

Load
   Month,
   sum(Value) as SumOfValue
Resident TBL
group by Month;

qlikeers
Creator II
Creator II
Author

I think I know why, "Month" was created with the format() function. Converting to text solved the problem.