Skip to main content
Announcements
Qlik Introduces a New Era of Visualization! READ ALL ABOUT IT
cancel
Showing results for 
Search instead for 
Did you mean: 
fvarlet
Contributor II
Contributor II

Displaying a series of charts

Hello all,

I'm creating a dashboard with a series of barcharts, each barchart showing the weekly evolution of a value for a specific project (i.e. one barchart per project).

These charts should only be displayed for the projects selected by the user (all projects are displayed if no project is filtered)

For my data, I have 3 fields : [ProjectName], [Week], and [MyValue].

I've tried the following formula :

 

=Sum({<ProjectName={$(=SubField(Concat(DISTINCT ProjectName, '|'), '|', 1))}>} MyValue)

But it doesn't work

 

 

I know that SubField(Concat(DISTINCT ProjectName, '|'), '|', 1) give me the first project and that I have data for this project: my barchart displays data if I change this formula by Sum({<ProjectName={'Name of the project'}>} [MyValue]))

How could I change my formula to make it work?

1 Solution

Accepted Solutions
sunny_talwar

Try this

=Sum({<ProjectName = {"$(=SubField(Concat(DISTINCT ProjectName, '|'), '|', 1))"}>} MyValue)

View solution in original post

5 Replies
sunny_talwar

Try this

=Sum({<ProjectName = {"$(=SubField(Concat(DISTINCT ProjectName, '|'), '|', 1))"}>} MyValue)
fvarlet
Contributor II
Contributor II
Author

That works Smiley Happy

Thanks a lot!

sunny_talwar

Awesome, but I wonder how is your response (saying that my response worked) constitute as a solution? 🙂
fvarlet
Contributor II
Contributor II
Author

Oups, wrong button Smiley Very Happy

sunny_talwar

🙂 Thanks for fixing it