web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / HOW TO - Track model c...
Power Automate
Unanswered

HOW TO - Track model credit consumption with Power BI (updated Oct 2025)

(7) ShareShare
ReportReport
Posted on by Moderator

Hi all,

As the AI Builder team has been receiving questions on how to track credit consumption per model, here is what you can do as of today to build a Power BI report that tracks consumption per model type and per model, leveraging the Dataverse AI Event table:
 

  • Find and copy the environment URL (in Power Platform Admin Center -> Environments -> <Env name> -> Details)
  • Open Power BI desktop
  • Select "Common Data Service (Legacy)" as data source 
  • Enter environment URL (do not forget the https:// and the / at the end)
  • Select tables/entities msdyn_aievent, msdyn_aitemplate and msdyn_aimodel
  • In the Model view, establish a many to one relationship between table msdyn_AIModel column msdyn_templateid and table msdyn_AITemplate column msdyn_aitemplateid
  • In the Report view, add a Matrix visualization
    • Select “msdyn_uniquename” (from msdyn_AITemplate) and “msdyn_name” (from msdyn_AIModel) as rows, “month” from date hierarchy of msdyn_processingdate (from msdyn_AIEvent) as columns, and Sum of “msdyn_creditconsumed” (from msdyn_AIEvent) as values: this will show the monthly consumption per model type (prebuilt models) & per model (custom models)

You can of course change the processing date hierarchy to fit you needs, or change the type of visualization. 
 

jk_one_0-1702645135194.png


Some additional info:

- admins see all data, makers see only their own;
- <blank> model id/type is when a model has been deleted;
- check out Monitor model activity (preview) | Microsoft Learn for the official documentation;
- the AI Builder consumption report - AI Builder | Microsoft Learn remains the source of truth for credit consumption tracking as some consumptions are not recorded in the AI Event table (ex: object detection training, prediction models consumption, errors when recording the predicts in the table etc). 

 

Hope that helps !

JK from the AI Builder team

[October 2025 update]

To track Copilot Credits consumption of AI Builder models and prompts, you can add a calculated column in your Power BI report:

In the Table view, for the msdyn_AIEvent table, add a "CopilotCreditConsumption" column with 
 

CopilotCreditConsumption =
VAR jsonText = [msdyn_eventdata]
VAR startPos = FIND("""consumption"":", jsonText, 1, -1)
RETURN
    IF(
        startPos > 0,
        VALUE(
            SUBSTITUTE(
                MID(
                    jsonText,
                    startPos + LEN("""consumption"":"),
                    FIND("}", jsonText & "}", startPos) - startPos - LEN("""consumption"":")
                ),
                "}", ""
            )
        ),
        0
    )

You can then use these values to track Copilot Credit consumption.

Categories:
I have the same question (0)
  • jpreston4 Profile Picture
    171 on at

    @jk_one 

    An excellent and very timely article for me

    I was trying this today using the new dataverse connector but i could not see the msdyn_aievent table

    So have switched to the legacy connector - which works !

     

     

  • jpreston4 Profile Picture
    171 on at

    Also, the 'createdby' in the aimodel table is the Environment GUID. If you want the Azure AD ID, then bring in the 'systemusers' table. Then create a relationship between aimodel/createdby and systemusers/systemuserid

  • jk_one Profile Picture
    Moderator on at

    Hi @jjpreston291 

    Thanks for trying it out and providing feedback (and additional information)!

    I was trying this today using the new dataverse connector but i could not see the msdyn_aievent table

    So have switched to the legacy connector - which works !


    Yes, fixing that is in our backlog, I'll keep the thread updated once I have more info.

    Thanks,
    JK

  • jpreston4 Profile Picture
    171 on at

    @jk_one Hi, Do you have any ideas how to identify the flows that trigger the AI models ? Your report has helped me identify the top models. If these model owners do not take action to reduce the usage, then I would like to stop the Flows from running  , or at least have visibility of them. Asking this from an Admin point-of-view.

  • jk_one Profile Picture
    Moderator on at

    Hi @jjpreston291 

    Unfortunately, there is no way to link a flow and an AI Builder predict today.

     

    The closest you can come is to identify the user whose connection is used for the predict, using the "Created by"  in the AI Event table (aievent/createdby) : either they own the flow that consumes credits, or they have shared their flow with someone who is using their connection.

    Hope that helps,

    JK 

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 525 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 324 Moderator

#3
abm abm Profile Picture

abm abm 232 Most Valuable Professional

Last 30 days Overall leaderboard