

Note 2: Query names with (CNX) refer to the base queries to the flat files upon which the other merge queries are based.Note 1: I used the convention of adding an asterisk to the query name to visually see which queries I disabled refreshing with Refresh All.ThisWorkbookDataModel|DataModel|True|True|7 Query-UsersinDA,NotinApp-BulkDEL*|Connectiontothe'UsersinDA,NotinApp-BulkDEL*'queryintheworkbook.|False|True|1 Query-AuditLogs-Users(CNX)*|Connectiontothe'AuditLogs-Users(CNX)*'queryintheworkbook.|False|True|1 Query-AuditLogs-SCIM(CNX)*|Connectiontothe'AuditLogs-SCIM(CNX)*'queryintheworkbook.|False|True|1 Query-AuditLogs(CNX)*|Connectiontothe'AuditLogs(CNX)*'queryintheworkbook.|False|False|1 Query-VP_Org(CNX)|Connectiontothe'VP_Org(CNX)'queryintheworkbook.|True|True|1 Query-VPw/oForFRLicenses|Connectiontothe'VPw/oForFRLicenses'queryintheworkbook.|True|True|1 Query-VPw/Licenses|Connectiontothe'VPw/Licenses'queryintheworkbook.|True|True|1

Query-VPFullLicinAppADGroups|Connectiontothe'VPFullLicinAppADGroups'queryintheworkbook.|True|True|1 Query-AnchorSearch(CNX)|Connectiontothe'AnchorSearch(CNX)'queryintheworkbook.|True|True|1 Query-AllAzureADUsersOnly|Connectiontothe'AllAzureADUsersOnly'queryintheworkbook.|True|False|1 Query-AllAzureADUsers-Enabled|Connectiontothe'AllAzureADUsers-Enabled'queryintheworkbook.|True|False|1 Query-AllAzureADUsers-Disabled|Connectiontothe'AllAzureADUsers-Disabled'queryintheworkbook.|True|False|1 Query-AllADMembers(CX)|Connectiontothe'AllADMembers(CX)'queryintheworkbook.|True|True|1 ModelConnection_ExternalData_11|DataModel|True|True|7 ModelConnection_ExternalData_1|DataModel|True|True|7 Name|Description||RefreshWithRefreshAll|InModel|Type
EXCEL QUERIES AND CONNECTIONS HOW TO
EXCEL QUERIES AND CONNECTIONS CODE
The example code below is based on hours of research.There are a large number of worksheets that contain Pivots off the Data Model, whereas the others contain a subset of tables that are populated from the queries via "Load To".

