'Filter \ switch to exclude some data

I have a column in the data that shows if the data is of a certain type. and marks it with a 1 or 0

By default I would like my page to show all data, but I would like to select and switch between show only the data with a 1 in the marker column or show all (1,0)

e.g. a fitter to show either all or exclude the 0 in the column. basically an on off switch.

I'm a bit lost!



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source