
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Background Color Expression - Qlik Sense
Hello, everyone-
I am trying to change the background color to a column in a table, I have it working for two colors using this expression:
Count(Distinct [Inspection Bar Code])/$(fInventoryCount]<.50, RED(), Yellow()
But I want to add also if it's over .70 to be blue and if it = 0 to be black. Yet everytime i try to add to the expression it stops working.
Any ideas?
Thanks!
- « Previous Replies
-
- 1
- 2
- Next Replies »
Accepted Solutions

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Try this:
If(Count(Distinct [Inspection Bar Code])/$(fInventoryCount) = 0, Black(),
If(Count(Distinct [Inspection Bar Code])/$(fInventoryCount)<.50, RED(),
If(Count(Distinct [Inspection Bar Code])/$(fInventoryCount)< .70, Yellow(), Blue())))
See the attached app

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
can you share your QVF file containing this table?
Thanks

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
May be you missed the if statement?
If(Count(Distinct [Inspection Bar Code])/$(fInventoryCount]<.50, RED(), Yellow())

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I have the "If" in it, sorry I didn't include that in my question!

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I just attached it to my original post. Thanks!

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Then try this
If(Count(Distinct [Inspection Bar Code])/$(fInventoryCount] = 0, Black(),
If(Count(Distinct [Inspection Bar Code])/$(fInventoryCount] <.50, RED(),
If(Count(Distinct [Inspection Bar Code])/$(fInventoryCount] < .70, Yellow(), Blue())))

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
That's what I thought it would be and it's not working. So strange!

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Try this:
If(Count(Distinct [Inspection Bar Code])/$(fInventoryCount) = 0, Black(),
If(Count(Distinct [Inspection Bar Code])/$(fInventoryCount)<.50, RED(),
If(Count(Distinct [Inspection Bar Code])/$(fInventoryCount)< .70, Yellow(), Blue())))
See the attached app

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
It's working, It's just that sunny miss wrote it
If(Count(Distinct [Inspection Bar Code])/$(fInventoryCount] = 0, Black(),
If(Count(Distinct [Inspection Bar Code])/$(fInventoryCount] <.50, RED(),
If(Count(Distinct [Inspection Bar Code])/$(fInventoryCount] < .70, Yellow(), Blue())))
$(fInventoryCount) not $(fInventoryCount]

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Ah! What a foolish mistake!! THANK YOU!!!!!

- « Previous Replies
-
- 1
- 2
- Next Replies »