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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
shekhar_analyti
Specialist
Specialist

How to enable Conditional show of measures based on selection in other unrelated field in data model ?

Hi All ,

How to enable Conditional show of measures based on selection in other unrelated field in data model ?

NOTE : It should be done without use of Variable Over view and Action/Triggers . However LET can be used in load script .

Here in my requirement ...

Line chart is showing Sales , Loss  and Expense trend , month wise .

I have a field called Measure with field values as Sales , Loss , Expense .

a) when user has not selected any thing in Measure Field then chart should display all data as is .

b) When user selects Loss from Measure then chart should show only Loss trend , similarly if two vales are selected in Measure field then those two should be shown in chart ...

cond measure.PNG

22.PNG

Thanks & Regards

Shekar

1 Solution

Accepted Solutions
tresesco
MVP
MVP

This?

If(Index(Concat(Measure),'Sales'), sum(Sales))

View solution in original post

5 Replies
shekhar_analyti
Specialist
Specialist
Author

PFA ..

tresesco
MVP
MVP

PFA

=Index(Concat(Measure),'Sales')

Anil_Babu_Samineni

Simple and so neat

Best Anil, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful
shekhar_analyti
Specialist
Specialist
Author

Hi Tresesco ,

   

   Thanks for reply . I wanted this to be achieved in expression , without using conditional checkbox .

    Is this possible ?

poss.PNG

tresesco
MVP
MVP

This?

If(Index(Concat(Measure),'Sales'), sum(Sales))