Skip to content

microsoft/AI-in-One-Dashboard

Repository files navigation

πŸ€– AI-in-One Dashboard

This repository contains the AI-in-One Dashboard Power BI template. This report provides comprehensive insights into Microsoft Copilot and Agent adoption, empowering AI and business leaders to make informed decisions regarding AI implementation, licensing, and enablement strategies.


⚠️ Important usage & compliance disclaimer

Please note:

While this tool helps customers better understand their AI usage data, Microsoft has no visibility into the data that customers input into this template/tool, nor does Microsoft have any control over how customers will use this template/tool in their environment.

Customers are solely responsible for ensuring that their use of the template tool complies with all applicable laws and regulations, including those related to data privacy and security.

Microsoft disclaims any and all liability arising from or related to customers' use of the template tool.

Experimental Template Notice:
This is an experimental template. On occasion, you may notice small deviations from metrics in the official Copilot and Agent Dashboards. We will continue to iterate based on your feedback. For the most accurate and reliable usage insights, users are encouraged to refer to data from the Microsoft 365 Admin Center and Viva Insights. Currently available in English only.


πŸ“Š What This Dashboard Provides

  • Comprehensive visibility into M365 Copilot, unlicensed Copilot Chat, and Agent usage across your organization
  • User engagement tracking over time to identify adoption patterns and trends across all Copilot surfaces
  • Data-driven insights to optimize AI investments, license allocation, and employee enablement
  • Customizable views to segment data by department, role, or other organizational dimensions

πŸš€ How This Helps Leaders

  • Make informed AI and Microsoft Copilot investment decisions using comprehensive usage data and analytics consolidated in one place
  • Identify Copilot and Agent adoption champions and areas needing additional enablement
  • Optimize enablement and change management efforts based on actual usage patterns across M365 Copilot, unlicensed Copilot Chat, and Agents
  • Accelerate AI readiness, adoption, and impact across the organizationβ€”from licensed Copilot experiences to emerging Agent capabilities

βœ… What You'll Do

Quick Overview: Export 3 data sources β†’ Connect them to Power BI β†’ Analyze your AI adoption

Choose Your Method

πŸ–±οΈ Option A: Manual Export via Web Portal (Recommended for first-time setup)

Follow the traditional workflow using browser-based portals to export your data:

  1. Export Copilot audit logs from Microsoft Purview
  2. Download licensed user data from Microsoft 365 Admin Center
  3. Export org data from Microsoft Entra Admin Center
  4. Connect CSV files to Power BI template

Best for: One-time setup, first-time users, or those who prefer GUI-based workflows

πŸ‘‰ See detailed instructions below in the Detailed Steps section

⚑ Option B: Automated PowerShell Scripts (For regular refreshes)

Use the PowerShell automation scripts in the scripts folder for a faster, repeatable workflow. This method supports two execution modes:

  • Run locally (PowerShell) and export CSVs
  • Run in Azure Automation (runbooks) and upload outputs to SharePoint

Advantages:

  • βœ… Automated data export via Microsoft Graph API
  • βœ… Reduced manual steps and potential errors
  • βœ… Easy to schedule for regular data refreshes
  • βœ… Consistent results every time

Prerequisites:

  • PowerShell 5.1 or later
  • Microsoft Graph PowerShell modules
  • Appropriate permissions (same as manual method)

Quick Start (Local execution):

# 1. Install required modules
Install-Module Microsoft.Graph.Beta.Security -Scope CurrentUser

# 2. Navigate to scripts folder and run
cd scripts
.\create-query.ps1              # Creates audit log query
.\get-copilot-interactions.ps1  # Exports query results
.\get-copilot-users.ps1         # Exports licensed users list

Quick Start (Azure Automation execution):

cd scripts/automation
.\deploy.ps1

πŸ“– Documentation:

---

πŸ“ Detailed Steps

πŸ” Step 1 (skip if using 'Option B'): Download Copilot Interactions Audit Logs (Microsoft Purview)

What This Data Provides

This log provides detailed records of Copilot interactions across all surfaces (Chat, M365 apps, Agents), enabling deep analysis of usage patterns and engagement.

Requirements

  • Access level required: Audit Reader or Compliance Administrator
  • Portal: Microsoft Purview Compliance Portal
  • Permissions needed: View and export audit logs

Step-by-Step Instructions

  1. Navigate to the portal

    • Go to: security.microsoft.com
    • In the left pane, scroll down and click Audit
    • Ensure you have appropriate compliance roles (e.g., Audit Reader). If not, contact your IT admin
  2. Configure the audit search

    • In Activities > Friendly Names, select:
      Copilot Activities – Interacted with Copilot
    • Set a Date Range (recommended: 1–3 months to match your Viva query)
    • Give your search a descriptive name (e.g., "Copilot Audit Export - Oct 2025")
  3. Run and export the search

    • Click Search
    • Wait until the status changes to Completed
    • Click into the completed search
    • Select Export > Download all results
    • Save the CSV file to a known location (e.g., C:\Data\Copilot_Audit_Logs.csv)

Expected File Format

  • File format: CSV
  • Typical size: Varies widely (5 MB–500 MB depending on org size and activity)
  • Columns: ~50+ columns including timestamps, user IDs, activity types, surfaces
  • Rows: One row per Copilot interaction

πŸ“– Learn more: Export, configure, and view audit log records – Microsoft Learn

πŸ‘€ Step 2 (skip if using 'Option B'): Download Copilot Licensed User List (Microsoft 365 Admin Center)

What This Data Provides

This data provides a list of users with Copilot licenses, enabling you to track license utilization and identify licensed vs. unlicensed usage patterns.

Requirements

  • Access level required: Global Administrator or Reports Reader
  • Portal: Microsoft 365 Admin Center
  • Permissions needed: View usage reports

Step-by-Step Instructions

  1. Navigate to the portal

  2. Unhide usernames (if concealed)

    • Go to Settings > Org Settings
    • Under the Services tab, choose Reports
    • Deselect: "Display concealed user, group, site names in all reports"
    • Click Save changes
  3. Navigate to Copilot reports

    • Go to: Reports > Usage > Microsoft 365 Copilot
    • Click on the Readiness tab
  4. Export license data

    • Scroll to Copilot Readiness Details section
    • Ensure the column Has Copilot license assigned is visible
    • Click the ellipsis (...) menu
    • Choose Export to download the file as CSV
    • Save to a known location (e.g., C:\Data\Copilot_Licensed_Users.csv)

Expected File Format

  • File format: CSV
  • Typical size: 1–10 MB for 1,000–10,000 users
  • Columns: ~10–15 columns including UserPrincipalName, Department, LicenseStatus, LastActivityDate
  • Rows: One row per user in your organization

πŸ“– Learn more: Microsoft 365 Copilot Readiness Report – Microsoft Learn

πŸ“₯ Step 3: Access Org Data File (Microsoft Entra or Viva Insights)

What This Data Provides

This file provides organizational hierarchy and user attributes, enabling segmentation by department, role, location, or other organizational dimensions.

Requirements

  • Access level required: User Administrator or Global Reader (Entra) OR Insights Administrator (Viva)
  • Portal: Microsoft Entra Admin Center or Viva Insights
  • Permissions needed: View and export user data

Option A: Export from Microsoft Entra

  1. Navigate to the portal

  2. Select and download users

    • Click All users
    • Click the "Download users" button (in toolbar or under ... menu)
  3. Configure the export

    • In the download dialog, select attributes to include:
    • Required fields:
      • UserPrincipalName
      • Department
    • Optional but recommended fields:
      • JobTitle
      • Office
      • City
      • Country
      • Manager
      • Any custom attributes relevant for reporting
  4. Download the file

    • Choose CSV format
    • Click Download
    • Save to a known location (e.g., C:\Data\Org_Data_Entra.csv)

Option B: Use Custom Org Data (Recommended)

If you have a custom org data file with organizational hierarchy and user attributes, you can use that instead. Ensure it includes:

  • Required columns: UserPrincipalName or PersonID, Department or Organization

Expected File Format

  • File format: CSV
  • Typical size: 1–20 MB depending on org size and attributes
  • Columns: Varies (5–30+ columns)
  • Required columns: UserPrincipalName, Department
  • Rows: One row per user

πŸ’‘ Note: Avoid downloading non-essential attributes as it can degrade performance and increase file size unnecessarily.

πŸ“– Learn more: Download a list of users – Microsoft Learn

πŸ” Step 4: Open and Configure the Power BI Template

What You'll Do

Connect the Power BI template to your data sources using file paths for the CSV files.

Step-by-Step Instructions

  1. Download the template

    • Download AI-in-One Dashboard - Purview - Template.pbit from this repository
  2. Open the template in Power BI Desktop

    • Double-click the .pbit file
    • A parameter dialog will appear
  3. Enter file paths

    • Copilot Audit Log Path: Full path to your audit log CSV
      Example: C:\Data\Copilot_Audit_Logs.csv
    • Licensed Users Path: Full path to your licensed users CSV
      Example: C:\Data\Copilot_Licensed_Users.csv
    • Org Data Path: Full path to your org data CSV
      Example: C:\Data\Org_Data_Entra.csv
  4. Load the data

    • Click Load
    • Wait for all queries to refresh (may take 5–15 minutes on first load)
    • If errors occur, verify file paths are correct and files are accessible
  5. Save and publish

    • Save as a .pbix file (e.g., AI-in-One Dashboard - Purview.pbix)
    • Publish to your Power BI workspace
    • Configure scheduled refresh for CSV files in Power BI Service (recommended weekly or monthly)

Troubleshooting

  • Issue: "File not found" error

    • Solution: Verify file paths use absolute paths (e.g., C:\Data\file.csv, not .\file.csv) and files exist at those locations
  • Issue: Data refresh takes extremely long

    • Solution: Check CSV file sizes. Very large audit logs (>500 MB) may need to be filtered or split.
πŸ“Š Step 5: Review and Customize

What You'll Do

Review the dashboard, customize visualizations, and share with stakeholders.

Recommended Actions

  1. Review dashboard pages

    • Navigate through all report pages
    • Verify data loaded correctly
    • Check that filters and slicers work as expected
  2. Customize for your organization

    • Update visuals to match your branding (colors, logos)
    • Adjust hierarchies to match your org structure
    • Add or remove pages based on your needs
    • Create bookmarks for common views
  3. Set up filters and parameters

    • Configure default date ranges
    • Set up department/role filters
    • Create user-specific views if needed
  4. Publish and share

    • Publish to Power BI Service if not already done
    • Set up Row-Level Security (RLS) if needed
    • Share with stakeholders via workspace access or apps
    • Create subscriptions for key reports
  5. Document customizations

    • Keep notes on any changes you make
    • Version your .pbix file if making significant updates
    • Archive old versions in the /Archived Templates folder

Best Practices

  • πŸ”„ Refresh schedule: Set up weekly or monthly refresh for CSV files in Power BI Service
  • πŸ”’ Security: Use Row-Level Security to restrict sensitive data by department or role
  • πŸ“§ Subscriptions: Set up email subscriptions for executives who want regular updates
  • πŸ“Š Usage tracking: Monitor dashboard usage in Power BI Service to understand what resonates

πŸ“Έ Dashboard Preview

See the dashboard in action:

AI-in-One Dashboard animated preview


πŸ”— Related Resources

Viva Insights Sample Code: Explore the Viva Insights Sample Code Repository for ready-to-use code examples, API integration patterns, and reference implementations to extend your AI adoption analytics.

Super Usage Analysis: For deep-dive analysis into Copilot super users and adoption patterns, check out the DecodingSuperUsage repository.


πŸ”„ Version History

Check the /Archived Templates folder for previous versions of the dashboard template.

Current version: v1.0 (Initial release)


License

This project is licensed under the MIT License - see the LICENSE.md file for details.


πŸ”’ Security

Please see SECURITY.md for information on reporting security vulnerabilities.

About

AI-in-One Dashboard Power BI template for comprehensive AI usage analytics

Topics

Resources

License

Code of conduct

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •