I have a PowerPivot Spreadsheet which accesses a large amount of data from a MySQL database, and works well. I would like to expand this somewhat now, but so as to keep the amount of data manageable, and allow some fine tuning, I would like to selectively restrict this to some customers. I can do this by adding to the WHERE clause I use to build the Data Model.
My spreadsheet has a Table Of Contents page, which has links to all the other sheets, and a button to update the Data Model. I would like to extend this, so it includes a Combo to allow me to select the customer from a list, then use this selected customer in my SQL query.
So, my question is what is the best way to make my SQL Query used for creating the Data Model reference a Cell elsewhere in the Spreadsheet?
(I am sure this has been asked before, but my various searches have been unuccesful).
Thanks in anticipation
My spreadsheet has a Table Of Contents page, which has links to all the other sheets, and a button to update the Data Model. I would like to extend this, so it includes a Combo to allow me to select the customer from a list, then use this selected customer in my SQL query.
So, my question is what is the best way to make my SQL Query used for creating the Data Model reference a Cell elsewhere in the Spreadsheet?
(I am sure this has been asked before, but my various searches have been unuccesful).
Thanks in anticipation