Forum Discussion
Moscuba
Aug 06, 2019Copper Contributor
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...
- Aug 07, 2019
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.
Moscuba
Aug 06, 2019Copper 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.
JKPieterse
Aug 06, 2019Silver Contributor
I 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?
- MoscubaAug 06, 2019Copper Contributor
Hi,
There are tow fields: Inside Rep, Outside rep. I need all data where the report rep is either of those.
- JKPieterseAug 06, 2019Silver ContributorSo the query would need a filter similar to:
WHERE [Inside Rep]="Name of rep" Or [Outside rep]="Name of rep"
And then you could just filter your pivottable for blanks on either the Inside rep or the outside rep field.