Skip to main content
Announcements
Jan 15, Trends 2025! Get expert guidance to thrive post-AI with After AI: REGISTER NOW
cancel
Showing results for 
Search instead for 
Did you mean: 
Frquiroga1995
Contributor II
Contributor II

Reapeating Records

Hello Everyone !

 

I'm new into QlikView, and now I have the following challenge:

 

From different data sources loaded in the script, I developed a simple table in the front part. It is kind of like this (actually it has like 12 columns):

 

NamePhoneRequirement
Juan433567R01
Juan458970R01
Juan433567R04
Juan458970R04
Juan77788765R01
Juan77788765R04
Pedro433256R01
Pedro433256R06

 

The problem is that, for each person, there is more than one phone, and more than one requirement.

So for each phone and each requirement, I will have a record. Example: Juan has 3 different phones and 2 requirements, that means 6 records. I would like to have just one record. (Or at least, one record per requirement).

That means, I would like to have the phones in different columns (phone 1, phone 2, etc.) or I don't know if there is a way to for each client, in the phone column have like a drop down option and visualize the different phones. If that can be made also for the requirements would be great.

 

Thanks !

 

 

 

Labels (1)
1 Solution

Accepted Solutions
Frquiroga1995
Contributor II
Contributor II
Author

The thing is that a client can have one phone, 3 phone numbers, or 10 registered in the data base. 

 

I already solved it with a concat function, so I can visualize all the phone numbers in one row, separated with a " / " .

And having just one record per cliente.

View solution in original post

4 Replies
Chanty4u
MVP
MVP

use below for your first requirment.

https://community.qlik.com/t5/New-to-QlikView/RE-First-sorted-value/m-p/1447436

 

second one im not clear

avinashelite

Why don't you try Pivot tables? And pivot the phone number column that will show exactly how you need

benvatvandata
Partner - Creator II
Partner - Creator II

Are you trying to display this like:

benvatvandata_0-1602870251200.png

 

If so, create a straight table chart and add Name and Requirement as dimensions. 

Then for the expressions you do:

1st Phone: =firstsortedvalue(Phone, Phone, 1)

2nd Phone: =firstsortedvalue(Phone, Phone, 2)

3rd Phone: =firstsortedvalue(Phone, Phone, 3)

etc...

 

Frquiroga1995
Contributor II
Contributor II
Author

The thing is that a client can have one phone, 3 phone numbers, or 10 registered in the data base. 

 

I already solved it with a concat function, so I can visualize all the phone numbers in one row, separated with a " / " .

And having just one record per cliente.