Skip to main content
Announcements
See what Drew Clarke has to say about the Qlik Talend Cloud launch! READ THE BLOG
cancel
Showing results for 
Search instead for 
Did you mean: 
petergassert
Contributor III
Contributor III

Distribution plot: show always 0 as baseline by drilling

Good morning,

I am trying to focus my distribution plot, that always the 0 is in the middle.
Challange is, that the dimension is a drill down with 2 levels. First includes a formula, to cumulate company codes.

With min and max value this works fine on the first level by using the 

Min(Aggr(Sum(CF_In_CUR_Amount), CF_CompanyPair))*1.1

petergassert_0-1610355169808.png

By selecting a Company Pair and the next level will be opened to a monthly level, i would need to change the grouping to show the 0 as Baseline again. 

petergassert_1-1610355661657.png

Do you have any idea, how to set up the diagramm to always show the 0.

Points: Category Pair
Y-achsis: Drill down (Company Pair , YearMonth)
Measure: Sum(Value)

 

Labels (3)
1 Solution

Accepted Solutions
petergassert
Contributor III
Contributor III
Author

Found the solution myself:

Used following formula in a Minimum and Maximum Variable:
=if(GetPossibleCount(CF_CompanyPair)=1
,Min/Max(Aggr(Sum(CF_In_CUR_Amount),CF_CategoryPair, CF_MonthID))*1.1
,Min/Max(Aggr(Sum(CF_In_CUR_Amount),CF_CategoryPair, CF_CompanyPair))*1.1
)

These variables did I use to check if the Min/Max < or > 0
Min:   = if(num($(vDistPlotMin))<=0 , if(num($(vDistPlotMax))<=0 , num($(vDistPlotMin))  ) , 0)
Max:  = if(num($(vDistPlotMax))<=0 ,0, num($(vDistPlotMax)) )

View solution in original post

1 Reply
petergassert
Contributor III
Contributor III
Author

Found the solution myself:

Used following formula in a Minimum and Maximum Variable:
=if(GetPossibleCount(CF_CompanyPair)=1
,Min/Max(Aggr(Sum(CF_In_CUR_Amount),CF_CategoryPair, CF_MonthID))*1.1
,Min/Max(Aggr(Sum(CF_In_CUR_Amount),CF_CategoryPair, CF_CompanyPair))*1.1
)

These variables did I use to check if the Min/Max < or > 0
Min:   = if(num($(vDistPlotMin))<=0 , if(num($(vDistPlotMax))<=0 , num($(vDistPlotMin))  ) , 0)
Max:  = if(num($(vDistPlotMax))<=0 ,0, num($(vDistPlotMax)) )