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

Announcements
Qlik GA: Multivariate Time Series in Qlik Predict: Get Details
cancel
Showing results for 
Search instead for 
Did you mean: 
Neha121
Contributor III
Contributor III

Help in set analysis

 

Hi All,

 I have below data model filter on screen and a bar chart. My bar chart filters perfextly for FY year as its key in both tables. I want my bar chart to Filter when "Company" is selected. sum({< Company_MF = Company>}Total Value).. whats the right way of doing it.

 

Data Model

Neha121_0-1760591767264.png

 

These are the filters on sheet 

Filter
FY Year
Company
Department

 

I have created the bar char with these fields

Bar chart
Gender_MF
sum(Total Value)
Labels (4)
1 Solution

Accepted Solutions
Vegar
MVP
MVP

You might be able to solve this using set modifier with set functions. Try this expression. 

sum({< Company_MF = P(Company)>}Total Value)

 

 

View solution in original post

4 Replies
PrashantSangle

Do you need this for just one object or all dashboard??

if for all dashboard then create Composite Key in your data model 

in table 1

FY_Year&'_'&Company as key

in table 2

FY_Year&'_'&Company_MF as key

 

Regards,

Great dreamer's dreams never fulfilled, they are always transcended.
Please appreciate our Qlik community members by giving Kudos for sharing their time for your query. If your query is answered, please mark the topic as resolved 🙂
Vegar
MVP
MVP

You might be able to solve this using set modifier with set functions. Try this expression. 

sum({< Company_MF = P(Company)>}Total Value)

 

 

Amit_Prajapati
Creator II
Creator II

Hi @Neha121 ,

If you'd like the chart to display data only after a company is selected from the filter, you can use the following expression under Add-ons → Data Handling in the Calculation Condition field:

GetSelectedCount(Company) > 0

This ensures the chart remains hidden until at least one company is selected.

let me know if you need anything else or if your requirement is different.

marcus_sommer

IMO the data-model isn't suitable. Instead of keeping two fact-tables it would be better to concatenate them by harmonizing all field-names and data-structures as much as possible and adding an extra source-field which enables the possibility to differentiate between the sources in dimensions/selections/conditions.