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: 
mhamurcuoglu
Contributor III
Contributor III

Distinct in the pivot chart

Dear all,

I want to switch the table below to pivot table as an example like the second table. But, I need to seperate belonging to groups and if the meterial IDs are the same number, it have to use the bigger operation number's material ID to put down under the group name.

Is there anyone that can help about this?

t


District
GroupMaterial IdOperation
1R210015
1R310014
2R210054
2R410083
3R211113
4R311201

P

DistrictGroupR1R2R3R4
1

1(count Material Id

211
31
41
1 Solution

Accepted Solutions
Anonymous
Not applicable

Hi Mehmet

I solved this issue.

View solution in original post

6 Replies
santhoo_san
Partner - Creator II
Partner - Creator II

did not understand the requirement

Anonymous
Not applicable

Hi

like this!!

Captura.PNG

Regards!!

Jannet

mhamurcuoglu
Contributor III
Contributor III
Author

Hi Santosh & Janet;

I agree that I couldn't explain the situation..    

Let me try again.

I just want to count the biggest number operation if district ID and material ID's are same.

For example: lets say the district Id=1 and Material ID is 1001 for 2 records. But the operation ID's are 5 and 4

In this situation, I want to count only operation Id 5(highest number) only. Which the report should seems like;

Group    Count

--------     -------

R2             1

I hope that I can explain the situation..

Many thanks in advance...

Anonymous
Not applicable

Hi Mehmet

I solved this issue.

santhoo_san
Partner - Creator II
Partner - Creator II

To add to palladium‌you can use below expression for distinct count


max(aggr(count(DISTINCT [Material Id]),District,[Material Id]))

mhamurcuoglu
Contributor III
Contributor III
Author

Thanks