Eliminate or select specific columns of a source PowerPivot table in an OLE DB Query
To get around some of the formatting limitations of a pivot table, I managed to build an OLE DB Query table which pulls data from a source PowerPivot table into excel. The following connection specs currently queries all of the fields from the source PowerPivot table. How do I modify the connection command text to eliminate specific columns or to select only certain columns from the Powerpivot table source? I know that one option is to simply delete the unwanted columns in the resulting query table, but I would like to avoid that approach since the deleted columns will be automatically added back if I edit the query in the future. Please be specific as I am a novice with PowerPivot and DAX and I am not familar with the syntax. My IT department says I just know enough to be dangerous. Thanks in advance! Rob
Connection:
Provider=MSOLAP.5;Persist Security Info=True;Initial Catalog=Microsoft_SQLServer_AnalysisServices;Data Source=$Embedded$;MDX Compatibility=1;Safety Options=2;ConnectTo=11.0;MDX Missing Member Mode=Error;Optimize Response=3;Cell Error Mode=TextValue
Command Type:
Default
Command Text:
Evaluate Table_ReconcilingInstruments
To get around some of the formatting limitations of a pivot table, I managed to build an OLE DB Query table which pulls data from a source PowerPivot table into excel. The following connection specs currently queries all of the fields from the source PowerPivot table. How do I modify the connection command text to eliminate specific columns or to select only certain columns from the Powerpivot table source? I know that one option is to simply delete the unwanted columns in the resulting query table, but I would like to avoid that approach since the deleted columns will be automatically added back if I edit the query in the future. Please be specific as I am a novice with PowerPivot and DAX and I am not familar with the syntax. My IT department says I just know enough to be dangerous. Thanks in advance! Rob
Connection:
Provider=MSOLAP.5;Persist Security Info=True;Initial Catalog=Microsoft_SQLServer_AnalysisServices;Data Source=$Embedded$;MDX Compatibility=1;Safety Options=2;ConnectTo=11.0;MDX Missing Member Mode=Error;Optimize Response=3;Cell Error Mode=TextValue
Command Type:
Default
Command Text:
Evaluate Table_ReconcilingInstruments