Skip to main content
Announcements
Accelerate Your Success: Fuel your data and AI journey with the right services, delivered by our experts. Learn More
cancel
Showing results for 
Search instead for 
Did you mean: 
Jsobrinho77
Creator
Creator

qliksense text or image conditional

Hi guys,

How can do I do, the logic to show text or image using the text and image object?

 

if( sum(values) = 1, 'Text',image1)

 

 

Labels (3)
1 Solution

Accepted Solutions
Andrei_Cusnir
Specialist
Specialist

The fastest solution for this use case scenario, would be to use Container and 2 Text & image objects. Here is an example:

 

1. Create a Container:

2. Add Text & image with a text 

3. Add Text & image with an image

4. The outcome so far is:

5. Now apply the following configurations:

  • Container > Content > Charts > 1st Text & image > Show condition: =Sum(values) = 1
  • Container > Content > Charts > 2nd Text & image > Show condition: =Sum(values) = 0
  • Container > Appearance > Container > Tabs: Un-check it

6. Now you can see that only the first Text & image is visible:

7. If the sum now is 0 instead of 1, you can see:

 

I hope that this information was helpful. In case I have misunderstood the use case scenario, please elaborate in details by providing additional information. However, if it has helped you resolve the issue, addressed your concerns or at least pointed you in the right direction, please mark it as Accepted Solution to give further visibility to other community members. 
 

Help users find answers! Don't forget to mark a solution that worked for you! 🙂

View solution in original post

1 Reply
Andrei_Cusnir
Specialist
Specialist

The fastest solution for this use case scenario, would be to use Container and 2 Text & image objects. Here is an example:

 

1. Create a Container:

2. Add Text & image with a text 

3. Add Text & image with an image

4. The outcome so far is:

5. Now apply the following configurations:

  • Container > Content > Charts > 1st Text & image > Show condition: =Sum(values) = 1
  • Container > Content > Charts > 2nd Text & image > Show condition: =Sum(values) = 0
  • Container > Appearance > Container > Tabs: Un-check it

6. Now you can see that only the first Text & image is visible:

7. If the sum now is 0 instead of 1, you can see:

 

I hope that this information was helpful. In case I have misunderstood the use case scenario, please elaborate in details by providing additional information. However, if it has helped you resolve the issue, addressed your concerns or at least pointed you in the right direction, please mark it as Accepted Solution to give further visibility to other community members. 
 

Help users find answers! Don't forget to mark a solution that worked for you! 🙂