Skip to main content
Woohoo! Qlik Community has won “Best in Class Community” in the 2024 Khoros Kudos awards!
Announcements
Nov. 20th, Qlik Insider - Lakehouses: Driving the Future of Data & AI - PICK A SESSION
cancel
Showing results for 
Search instead for 
Did you mean: 
bsbernabe
Creator
Creator

How to Get value to another Field

Hello There,

The concern is about how to get the Age of the Data Type base on Account No.

I try to do that :

Only({<[Data Type] = {Repo}>} [Age]) but not working.

sample data source:

Account No.Data TypeAge
123ABC30
456EFG40
789ABC5
910HIJ10
111ABC2

Should be output:

Age
30
5
2

 

Can you share with me how to do that?

Best Regards,

Bing

Labels (1)
1 Solution

Accepted Solutions
Vegar
MVP
MVP

Why are you using Repo in Only({<[Data Type]={Repo}>}[Age]) ?

Try changing to 'ABC'.  Only({<[Data Type]={'ABC'}>}[Age])

 

When using Only then you need to make sure that you only get one value per dimension combination in your table. So in your example outpu you would ned to have Account No. as a dimension as well. 

 

View solution in original post

1 Reply
Vegar
MVP
MVP

Why are you using Repo in Only({<[Data Type]={Repo}>}[Age]) ?

Try changing to 'ABC'.  Only({<[Data Type]={'ABC'}>}[Age])

 

When using Only then you need to make sure that you only get one value per dimension combination in your table. So in your example outpu you would ned to have Account No. as a dimension as well.