The Intune Data warehouse provides some data that is very useful for creating reports. In this blog I will show you how to access this data with PowerBi and also provide you with a example dashboard.

What is the Intune data warehouse
The Intune data ware house is a collection of multiple structured data tables with relations. You can use these for reporting purposes. It uses the OData model and you can access both daily and historical data. The Intune data warehouse only shows Intune devices, co-managed devices have to be retrieved via ConfigMan. You can find the OData feed string in the Intune admin center under Reports -> Data warehouse.
Useful links:

Install PowerBi Desktop on your device
- Download and install PowerBi Desktop from the Windows Store

Access the Intune Data Warehouse in PowerBi
- Open PowerBi Desktop

- Select Get data

- Search for Intune Data Warehouse and click Connect

- Select Don’t warn me again for this connector and click Continue

- Select the history you want to have and click OK

- Click Sign in and authenticate with your account

- Click Connect

- Select the Tables you need for the reporting

Import ready-to-use Dashboard
- Download the Intune Dashboard from my Github repository
- Click refresh

- Sign in with your credentials

- Have fun with the dashboard
App View

Device view

Config Profile

Conclusion
With this dashboard you get a high-level overview of your environment. You can extend it with other data sources or expand it further and customize it for your needs (you don’t have to take care about the design).
Stay healthy, Cheers
Jannik
11.02.2023: Error 0x80040E4E
If you got this error you have to change the regional setting: https://learn.microsoft.com/en-us/power-bi/fundamentals/supported-languages-countries-regions
The dashboard looks nice but when I try to refresh the data I get the following error:
OLE DB or ODBC error: Exception from HRESULT: 0x80040E4E.
I think it’s related to Regional settings but I can’t find a setting that allows the data connection to complete. Any thoughts?
It looks like that this is an issue with the encoding and an strange character. Can you give me more details from this error message. You can also check this: https://community.powerbi.com/t5/Desktop/0x80040E4E-Error-OLE-DB-or-ODBC/m-p/116683
Can you try this: https://learn.microsoft.com/en-us/power-bi/fundamentals/supported-languages-countries-regions
Sorry, I overlooked your reply. Just had a chance to review your response and test a few things. I enabled tracing and grabbed the error from the logs. Here is the error, which doesn’t mention language support or unusual characters.
DataMashup.Trace Error: 24579 : {“Start”:”2023-02-18T18:09:45.7086982Z”,”Action”:”PBI.TraceMessage”,”sessionId”:”xnxnxnxnxnxnxnxnxnx”,”deviceId”:”xnxnxnx”,”userId”:”xnxnxnxnxnxnxnxnxnx”,”isInternal”:”False”,”authenticatedUserId”:”xnxnxnxnxnxnxnxnxnx”,”Message”:”ASOperationException with failed queries in ApplyQueriesToModel.Details:Type=Microsoft.AnalysisServices.OperationException, Message=Failed to save modifications to the server. Error returned: ‘Column ‘platform’ in Table ‘mamApplicationInstances’ contains a duplicate value ‘3’ and this is not allowed for columns on the one side of a many-to-one relationship or for columns that are used as the primary key of a table.
OLE DB or ODBC error: Exception from HRESULT: 0x80040E4E.
The current operation was cancelled because another operation in the transaction failed.
‘., ASErrorCode=3241541694|3238395904|3238395904|3238395904|3238395904|3238395904|3238395904|3238395904|3238395904|3238395904|3238395904|3238395904|3238395904|3238395904|3238395904|3238395904|3238395904|3238395904|3238395904|3238395904|3238395904|3238395904|3238395904|3238395904|3238395904|3239837702|3238395904|3238395904|3238395904|3238395904|3238395904|3238395904, StackTrace=at Microsoft.AnalysisServices.Tabular.Model.SaveChangesImpl
at Microsoft.PowerBI.Modeler.ModelManager.c__DisplayClass248_0.b__0
“,”ProductVersion”:”2.114.664.0 (23.02)”,”ActivityId”:”00000000-0000-0000-0000-000000000000″,”Process”:”PBIDesktop”,”Pid”:38872,”Tid”:104,”Duration”:”00:00:00.0000175″}
Same error here: OLE DB or ODBC error: Exception from HRESULT: 0x80040E4E.
It looks like that this is an issue with the encoding and an strange character. Can you give me more details from this error message. You can also check this: https://community.powerbi.com/t5/Desktop/0x80040E4E-Error-OLE-DB-or-ODBC/m-p/116683
Can you try this: https://learn.microsoft.com/en-us/power-bi/fundamentals/supported-languages-countries-regions
Same error
Same Error as welll – hmmmm – any ideas?
OLE DB or ODBC error: Exception from HRESULT: 0x80040E4E.
It looks like that this is an issue with the encoding and an strange character. Can you give me more details from this error message. You can also check this: https://community.powerbi.com/t5/Desktop/0x80040E4E-Error-OLE-DB-or-ODBC/m-p/116683
Its a bit weird since it seems to generate the error based on the intune tenant not from where the report is runned? Both are running from power bi desktop latest version.
This tenant works:
Tenant location
Europe 0202
MDM authority
Microsoft Intune
Account status
Active
Service release
2301
This one does not:
Tenant location
Europe 0601
MDM authority
Microsoft Intune
Account status
Active
Service release
2301
More details of the errors:
enrollmentActivities
Column ‘dateKey’ in Table ‘enrollmentActivities’ contains a duplicate value ‘20230130’ and this is not allowed for columns on the one side of a many-to-one relationship or for columns that are used as the primary key of a table.
enrollmentFailureCategories
OLE DB or ODBC error: Exception from HRESULT: 0x80040E4E.
Did you saw my comment on the bottom of the blog how to fix 0x80040E4E. Did this hel?
I only see à reference to change regional settings but from What? And What to?
You have to change the Region in PowerBi to solve your issue. The regional settings are the problem with the character support. Know this is a bit confusing but it helps. Check this:
https://community.powerbi.com/t5/Desktop/0x80040E4E-Error-OLE-DB-or-ODBC/m-p/116683
hmm ive tried from Us to german .. same, keeps working for the tenant above that works but same errors for the one that did not work :/