Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Posting on Qlik Community is temporarily paused. Thank you for patience and we'll update you soon!
cancel
Showing results for 
Search instead for 
Did you mean: 
deepakqlikview_123
Specialist
Specialist

Expression not returning required results

Hi All,

PFA

As per requirement if FRQ_Type is A then i need to show Q4 data for FRQ_TYPE A,otherwise need to put Q4 data for FRQ type Q

for indicator and its respective value as per country.

but below expression is not returning perfect result

if(MinString(FRQ_TYPE)='A',Avg({<INDICATOR_NAME={'% of Non-Bank Private Debt to Nominal GDP'},COUNTRY={'Singapore'},FRQ_TYPE={'A'},QUARTER={'Q4'}>}INDICATOR_VALUE),

Avg({<INDICATOR_NAME={'% of Non-Bank Private Debt to Nominal GDP'},COUNTRY={'Singapore'},FRQ_TYPE={'Q'},QUARTER={'Q4'}>}INDICATOR_VALUE))

Please suggest on this.

Thanks

Labels (1)
9 Replies
deepakqlikview_123
Specialist
Specialist
Author

Hi All,

Can you please suggest on this.

Thanks

sunny_talwar
MVP
MVP

What is the expected output?

deepakqlikview_123
Specialist
Specialist
Author

As per requirement if FRQ_Type is A then i need to show Q4 data for FRQ_TYPE A,otherwise need to put Q4 data for FRQ type Q

seems minstring also not working.

sunny_talwar
MVP
MVP

So for any particular year, if A is available use that and if not use Q?

deepakqlikview_123
Specialist
Specialist
Author

yes

but if Q is present use Q4

sunny_talwar
MVP
MVP

If it is not present then???

deepakqlikview_123
Specialist
Specialist
Author

if FRQ_Type is A then i need to show Q4 data for FRQ_TYPE A,otherwise need to put Q4 data for FRQ type Q

CELAMBARASAN
Partner - Champion
Partner - Champion

Try simply

Avg({<INDICATOR_NAME={'% of Non-Bank Private Debt to Nominal GDP'},COUNTRY={'Singapore'},FRQ_TYPE={'A','Q'},QUARTER={'Q4'}>}INDICATOR_VALUE)

deepakqlikview_123
Specialist
Specialist
Author

still it is not working