Skip to main content
Announcements
Join us at Qlik Connect for 3 magical days of learning, networking,and inspiration! REGISTER TODAY and save!
cancel
Showing results for 
Search instead for 
Did you mean: 
p_andreev
Partner - Contributor III
Partner - Contributor III

Built in string function in Set Analysis

Hi all,

Is it possible to have something like the following set analysis working?

sum({$< [Month] = "$(=FieldValue('MonthListName',Match(MonthListName,'January','February','March','April','May','June','July','August','September','Octomber','November','December','Total')))"}>} ItrSalesValue)

1 Solution

Accepted Solutions
Brice-SACCUCCI
Employee
Employee

Hi,

could you simply associate the Month field with the MonthListName field?

Here is a sample app.

Regards,

Brice

View solution in original post

6 Replies
swuehl
MVP
MVP

Maybe, but what do you want to achieve? How do your data look like, and what is your expected result?

For example, if you select in data island MonthListName, you can try

=sum({<Month = MonthListName>} ItrSalesValue)

p_andreev
Partner - Contributor III
Partner - Contributor III
Author

I will try to explain.

Here is a piece of my chart.

General SubCategoryMonthListNameSALES per MONTHSALES TOTAL
BRASS LEVEL 3January668 873.15668 873.15
February668 873.151 337 746.30
March668 873.152 006 619.45
April668 873.152 675 492.60
May668 873.153 344 365.75
June668 873.154 013 238.90
July668 873.154 682 112.05
August668 873.155 350 985.20
September668 873.156 019 858.35
Octomber668 873.156 688 731.50
November668 873.157 357 604.65
December668 873.158 026 477.80
Total668 873.158 695 350.95

"MonthListName" field is an inline list combined with "General SubCategoriey" in my script. This is because I need all 12 months for every General SubCategory plus one row called Total for custom calculations of the totals.

Now I want to obtain monthly values (SALES per MONTH) without including months from the calendar as a dimension,but only by set analysis.

I hope this is clear.

swuehl
MVP
MVP

Set analysis won't consider the current dimension value, the set expression is only evaluated once per chart.

Please check

Evaluating "sets" in the context of a dimension

and try maybe the pick / match method mentioned there.

Brice-SACCUCCI
Employee
Employee

Hi,

could you simply associate the Month field with the MonthListName field?

Here is a sample app.

Regards,

Brice

p_andreev
Partner - Contributor III
Partner - Contributor III
Author

Thank you very much swuehl !

This is very important and helpful material.

Regards,

p_andreev
Partner - Contributor III
Partner - Contributor III
Author

Thank you Brice,

I built my solution taking into account your suggestion.

Best Regards,