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: 
drewjamison1396
Partner - Contributor II
Partner - Contributor II

Formatting on Drilldown Dimension

I am trying to format my vender cells to be red if any sum(margin) in the drill down are negative values. So that if even the total sum(margin) is positive for the vender over all, one could quickly isolate any unprofitable products.

the drilldown dimension is as follows

VenderName

ProductCategory

ProductSubcategory

ProductModelName

1 Solution

Accepted Solutions
lironbaram
Partner - Master III
Partner - Master III

Hi,
You should use an expression like this:

if(sum(aggr(if(Sum(Margin)<0,1,0),ProductModelName,VenderName))>0,red())

 

View solution in original post

2 Replies
lironbaram
Partner - Master III
Partner - Master III

Hi,
You should use an expression like this:

if(sum(aggr(if(Sum(Margin)<0,1,0),ProductModelName,VenderName))>0,red())

 

drewjamison1396
Partner - Contributor II
Partner - Contributor II
Author

Perfect!