Icon

20211026_​count_​higher_​than_​loopgroup v2

@elsamuel 's solution: https://hub.knime.com/elsamuel/spaces/Public/latest/rsierrama%20-%20Count%20Values%20above%20threshold~oJyivGFe34DQGJhV: $ColumnValues$ > 5 => 1GroupBy IDAggreagate query using SumLoop12 stepsBin all the data in 3 cathegories:Bin 1 : [ P01 - Q1 ]Bin 2 : ] Q1 - Q3 ]Bin 3 : ] Q3 - P99 ] 'Bin 3' value is currentlyyour 'nivel alto'*Q == QuartileSELECT 'Qn [Binned]'Count Qn [Binned]Add Qn [Binned].CountcolumnReplaceQn [Binned]CLASS (niveles)Binned to'niveles' dictionaryCollectDataSort by Qn Column*Q == Question columnNode 2262DuplicateBinned ColumnClean UpData ResultsGroup byUser ID( ROWS )Data to wideGroup byQn( COLUMNS )Data to wideCount User Scoresby 'niveles' (Binnned CLASS)Count Qn Scoresby 'niveles' (Binnned CLASS)Your Data12 Column RATING Questions20 User ID Rows Node 2281 Unpivoting Rule Engine GroupBy Group Loop Start Auto-Binner Column Filter Value Counter Joiner (deprecated) Cell Replacer Table Creator Loop End Sorter Sorter Rule Engine Column Filter GroupBy Pivoting GroupBy Pivoting Column Resorter Column Resorter DATA GENERATION Numeric Binner @elsamuel 's solution: https://hub.knime.com/elsamuel/spaces/Public/latest/rsierrama%20-%20Count%20Values%20above%20threshold~oJyivGFe34DQGJhV: $ColumnValues$ > 5 => 1GroupBy IDAggreagate query using SumLoop12 stepsBin all the data in 3 cathegories:Bin 1 : [ P01 - Q1 ]Bin 2 : ] Q1 - Q3 ]Bin 3 : ] Q3 - P99 ] 'Bin 3' value is currentlyyour 'nivel alto'*Q == QuartileSELECT 'Qn [Binned]'Count Qn [Binned]Add Qn [Binned].CountcolumnReplaceQn [Binned]CLASS (niveles)Binned to'niveles' dictionaryCollectDataSort by Qn Column*Q == Question columnNode 2262DuplicateBinned ColumnClean UpData ResultsGroup byUser ID( ROWS )Data to wideGroup byQn( COLUMNS )Data to wideCount User Scoresby 'niveles' (Binnned CLASS)Count Qn Scoresby 'niveles' (Binnned CLASS)Your Data12 Column RATING Questions20 User ID Rows Node 2281 Unpivoting Rule Engine GroupBy Group Loop Start Auto-Binner Column Filter Value Counter Joiner (deprecated) Cell Replacer Table Creator Loop End Sorter Sorter Rule Engine Column Filter GroupBy Pivoting GroupBy Pivoting Column Resorter Column Resorter DATA GENERATION Numeric Binner

Nodes

Extensions

Links