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: 
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.