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: 
brunov86
Contributor II
Contributor II

Dual function - Issue in a graph

Hello Qlik community,

I have an issue with a dimension in a graph and dual function.

My measure has the following expression:

Count({<[LocalMember] = {'1'}
,[AsofDate_Month]={$(=(Max(AsofDate_Month])))}
,[AsofDate_Day]={$(=(Max([AsofDate_Day])))}
>} Distinct PersonID)

My graph displays the count for every year.

In my source table, I have

  • One field which is a numeric value (AsofDate_Year) YYYY
  • One field which is a string value (Membership Year YYYY/YYYY+1). This is the year I want to display.

It seems that as I use a max in my measure, it is causing problem to use the string year.

No issue when I use the numeric year.

issue_kyka_1.PNG

 

So I created a dual in my script with these 2 fields.

Dual(Membership_Year, AsofDate_Year) as Membership_YearFull

When I use it as a dimension, I have blank values fin the graph. 

issue_kyka_2.PNG

 

Any ideas what is causing the issue?

Thanks everyone 🙂

 

0 Replies