如何对使用值列表作为维度的条形图进行分组?
How to group bar chart that using value list as dimension?
我想将图表分成两部分,前四个需要在一个名为 ETY 的组中,其余属于另一个名为 PPY 的组
my chart
我的维度:=ValueList('PE-UCC','PE-SDK','SM','Sales Dist','PP1','PP2','PP3')
我的措施:if( valuelist('PE-UCC','PE-SDK','SM', 'Sales Dist','PP1','PP2','PP3')='PE-UCC' , sum(LLDPE)/(200000/12) ,
if( valuelist('PE-UCC','PE-SDK','SM', 'Sales Dist','PP1','PP2','PP3')='PE-SDK',Sum(HDPE)/(136000/12),
if(ValueList('PE-UCC','PE-SDK','SM', 'Sales Dist','PP1','PP2','PP3')='SM', Sum(SMI) / (340000/12),
if( ValueList( 'PE-UCC','PE-SDK','SM', 'Sales Dist','PP1','PP2','PP3')='Sales Dist', (Sum(PENI)+Sum(SULFINDO)+Sum(POlychem)+ Sum(ASAHI) +Sum( Mc ) +Sum(Ship))/38000,
if(ValueList('PE-UCC','PE-SDK','SM', 'Sales Dist','PP1','PP2','PP3')='PP1',Sum(PP1)/(Floor(MonthEnd(Max(DATE))) - Floor(MonthStart(Max(DATE))) + 1)/24/20,
if(ValueList('PE-UCC','PE-SDK','SM', 'Sales Dist','PP1','PP2','PP3')='PP2',Sum(PP2)/(Floor(MonthEnd(Max(DATE))) - Floor(MonthStart(Max(DATE))) + 1)/24/20,
if(ValueList('PE-UCC','PE-SDK','SM', 'Sales Dist','PP1','PP2','PP3')='PP3',Sum(PP3)/(Floor(MonthEnd(Max(DATE))) - Floor(MonthStart(Max(DATE))) + 1)/24/20)))))))
您可以使用分组维度,为此您必须创建一个包含分组值的新维度。在此视频中,您可以查看已开发的内容。
Qlik Sense Desktop – Drill-down Group Dimension
创建维度后,仅将其添加到条形图并添加度量。
我想将图表分成两部分,前四个需要在一个名为 ETY 的组中,其余属于另一个名为 PPY 的组
my chart 我的维度:=ValueList('PE-UCC','PE-SDK','SM','Sales Dist','PP1','PP2','PP3')
我的措施:if( valuelist('PE-UCC','PE-SDK','SM', 'Sales Dist','PP1','PP2','PP3')='PE-UCC' , sum(LLDPE)/(200000/12) ,
if( valuelist('PE-UCC','PE-SDK','SM', 'Sales Dist','PP1','PP2','PP3')='PE-SDK',Sum(HDPE)/(136000/12),
if(ValueList('PE-UCC','PE-SDK','SM', 'Sales Dist','PP1','PP2','PP3')='SM', Sum(SMI) / (340000/12),
if( ValueList( 'PE-UCC','PE-SDK','SM', 'Sales Dist','PP1','PP2','PP3')='Sales Dist', (Sum(PENI)+Sum(SULFINDO)+Sum(POlychem)+ Sum(ASAHI) +Sum( Mc ) +Sum(Ship))/38000,
if(ValueList('PE-UCC','PE-SDK','SM', 'Sales Dist','PP1','PP2','PP3')='PP1',Sum(PP1)/(Floor(MonthEnd(Max(DATE))) - Floor(MonthStart(Max(DATE))) + 1)/24/20,
if(ValueList('PE-UCC','PE-SDK','SM', 'Sales Dist','PP1','PP2','PP3')='PP2',Sum(PP2)/(Floor(MonthEnd(Max(DATE))) - Floor(MonthStart(Max(DATE))) + 1)/24/20,
if(ValueList('PE-UCC','PE-SDK','SM', 'Sales Dist','PP1','PP2','PP3')='PP3',Sum(PP3)/(Floor(MonthEnd(Max(DATE))) - Floor(MonthStart(Max(DATE))) + 1)/24/20)))))))
您可以使用分组维度,为此您必须创建一个包含分组值的新维度。在此视频中,您可以查看已开发的内容。
Qlik Sense Desktop – Drill-down Group Dimension
创建维度后,仅将其添加到条形图并添加度量。