Forum Discussion
Multiple Data Models in Excel / Power Pivot
It is possible to have two data models in Excel?
I need to limit the data in a file that is mass customized for 32 sales people. The file needs two queries in order to be able to calculate their commissions correctly. One query looks for sales the sales person is classified as the outside rep. The other looks for them as the inside rep.
Another way is to write a SQL that pulls in data where they are either the outside or inside rep. I can't figure that out.
Thank you.
I figured out the SQL. Interesting thing is that you can't place in the Where clause items that are in the Select clause. That was the issue.
7 Replies
- MoscubaCopper Contributor
I figured out the SQL. Interesting thing is that you can't place in the Where clause items that are in the Select clause. That was the issue.
- JKPieterseSilver ContributorIf I'm not sure about the syntax of a query I tend to use MSAccess' querydesigner to build the query.
- JKPieterseSilver ContributorThere should be a table containing a field which states whether a sale is out- or in-side. You can use that field to filter the report
- MoscubaCopper Contributor
Thank you but that brings in all sales reps into the data model and we need to limit the data to the specific rep: too many rows and we don't want them seeing other reps data.
- JKPieterseSilver ContributorI don't see why that would be a problem with the solution I propose. Either way you would need to filter the data for the rep opening the file, wouldn't you?