Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
rittermd
Master
Master

Create a filter based on excel columns

My data source in an excel spreadsheet.  Each row is a Branch.  Each column is a year (2010 - 2016).

I have loaded the data into a table and I want the user to be able to pick a year and limit the data that is visible.  I am not sure if or how I can do this with excel. 

                 2010   2011     2012  2013   2014  etc.

Branch A     100     200     300     500     700

1 Solution

Accepted Solutions
OmarBenSalem

You use crosstable:

Crosstable (Year, measure, 1) LOAD * INLINE [

Branch,   2010,   2011,     2012,  2013,   2014 

Branch A, 100 ,    200,     300,     500,     700

Branch B, 200 ,    400,     300,     700,     900

];

result:

Capture.PNG

View solution in original post

2 Replies
OmarBenSalem

You use crosstable:

Crosstable (Year, measure, 1) LOAD * INLINE [

Branch,   2010,   2011,     2012,  2013,   2014 

Branch A, 100 ,    200,     300,     500,     700

Branch B, 200 ,    400,     300,     700,     900

];

result:

Capture.PNG

luohda
Contributor III
Contributor III

I have the same problem, currently i am using cross table, but what if I want to plot values of 2 different years in scatter plot? how can I select values of 2 different years as x and y? Or should I use another method instead of cross table? Because in some sheets I also want to filter years.