Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Always append data at the end regardless of what filter is set on UI

This is how my table look like. I always have to show the data where StatusChanged field is set to 'Changed'. How do i achieve that?

I am showing Month/Year List box on the UI but i always want to show the rows that has StatusChanged to 'Changed' even if they fall outside the filter and if they fall outside the filter, change the ItemCategory to HasStatusChange.

TABLE:

LOAD *

INLINE [

    ItemType,          ItemCategory,     ItemName, StatusChanged, AddedOn

    ItemType1    ,    ItemCat1        ,    Item1,         'Changed',        '01/01/2015'

    ItemType1    ,    ItemCat1        ,    Item2,         'Not Changed', '04/01/2015'

    ItemType1    ,    ItemCat2        ,    Item3,         'Changed',        '01/05/2015'

    ItemType2    ,    ItemCat1        ,    Item4,         'Changed',        '08/04/2015'

    ItemType2    ,    ItemCat2        ,    Item5,         'Not Changed', '10/01/2015'

    ItemType2    ,    ItemCat2        ,    Item6,         'Not Changed', '12/01/2015'

    ItemType3    ,    ItemCat1        ,    Item7,         'Changed',        '05/04/2015'

    ItemType3    ,    ItemCat2        ,    Item8,         'Changed',        '07/08/2015'

    ItemType3    ,    ItemCat1        ,    Item9,         'Not Changed', '01/01/2015'

];

4 Replies
fred_s
Partner - Creator III
Partner - Creator III

Hi Sal,

See attachment.

Fourth dimension is

=if(StatusChanged = 'Changed', StatusChanged, null())

Grtz Fred

Not applicable
Author

May be i did not explain properly.

if an item has status changed and user has selected January in the filter box, i want to show all the items that were added in January and the ones that has StatusChanged = 'Changed' regardless of when they were added.

In short, it should always show the records that has StatusChanged = 'Changed'

awqvuserneo
Creator
Creator

Hi Sal,

Are you expecting the result look like this when 1/1/2015 & 1/5/2015 are selected?

 

AddedOnItemCategoryItemNameItemTypeStatusChanged
01/01/2015ItemCat1Item1ItemType1Changed
01/01/2015ItemCat1Item9ItemType3Not Changed
01/05/2015ItemCat2Item3ItemType1Changed
05/04/2015ItemCat1Item7ItemType3Changed
07/08/2015ItemCat2Item8ItemType3Changed
08/04/2015ItemCat1Item4ItemType2Changed

OR

 

AddedOnItemCategoryItemNameItemTypeStatusChanged
01/01/2015ItemCat1Item1ItemType1Changed
01/05/2015ItemCat2Item3ItemType1Changed
05/04/2015ItemCat1Item7ItemType3Changed
07/08/2015ItemCat2Item8ItemType3Changed
08/04/2015ItemCat1Item4ItemType2Changed
Not applicable
Author

Yes. The first set is what i am looking for. Is it possible to change the ItemCategory to 'StatusChanged' if the rows fall outside the filter? If you select January then something like this

01/01/2015ItemCat1Item1ItemType1Changed
01/01/2015ItemCat1Item9ItemType3Not Changed
01/05/2015ItemCat2Item3ItemType1Changed
05/04/2015StatusChangedItem7ItemType3Changed
07/08/2015StatusChangedItem8ItemType3Changed
08/04/2015StatusChangedItem4ItemType2Changed