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

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Unanswered

Get table method in power BI D365

(0) ShareShare
ReportReport
Posted on by 68

Hi, 

I am having a custom table lets say "TableABC" with a method getTotal() which is sum of some calculations.

   Table: ABC

   Field: Hours

   Method:  getTotal()

I wanted to use this method getTotal value in power BI report . Can someone help me if there is way to get this method value in power BI report ?

Also does power BI report allows using a view ?

User is actually using Datalake to expose the table , however I can even suggest directly using another approach in case there is any other solution ?

Thanks,

VK

I have the same question (0)
  • André Arnaud de Calavon Profile Picture
    303,314 Super User 2026 Season 1 on at

    Hi VK,

    There are several approaches. You can export tables and connect them in Synapse or Power BI to mimic the behavior of the method in Dynamics 365. You can also create a data entity with a virtual field which the can get the value from the method. Note that using a data entity with a virtual field filled by x++ coding will cause the calculation to be done per row which is negatively impacting the performance. If you can convert the method to T-SQL , this will be a lot faster.

  • GirishS Profile Picture
    27,833 Moderator on at

    Hi vicky,

    If getTotalHours is simple aggregate method for summing total hours, I think you can do that in power Bi report itself by selecting aggregate types.

    Thanks,

    Girish S.

  • vicky1234 Profile Picture
    68 on at

    hi Girish,

    Actually I have just given an example for totalhours , my display method gives the value of workflow status approver.

    Thanks,

    VK

  • Mohit Rampal Profile Picture
    12,565 Moderator on at

    Hi Vicky, I think you can access table methods and map it to the data entity field. You have to create virtual field and map it in mapDataSourceToEntity method. If you get the value in data entity, it can be used directly in Power BI. However, as Andre mentioned virtual fields cause performance degradation in data export.

    Check mapDataSourceToEntity in below article.

    nareshdax.blogspot.com/.../entity-methods-in-ax7.html

  • vicky1234 Profile Picture
    68 on at

    hi Andre,

    You mean that I should create an entity with a virtual field and that will have logic to fetch the custom method value .

    Wrt conversion of method to t-sql I dont know how you can convert that part , can you please share some more inputs. I know that we create some methods with logic similar to sql syntax in views but not sure about the entities, can you please share an example.

    Also can we use a view in power BI as well as tables together, or there can be only single connection at a time in Power BI.

    I think we can use the entity as well.

    Thanks,

    VK

  • André Arnaud de Calavon Profile Picture
    303,314 Super User 2026 Season 1 on at

    Hi VK,

    The virtual fields on a data entity is similar to a method on views. You can find an example on Microsoft Learn: Computed columns and virtual fields in data entities - Finance & Operations | Dynamics 365 | Microsoft Learn

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Congratulations to our 2025 Community Spotlights

Thanks to all of our 2025 Community Spotlight stars!

Leaderboard > Finance | Project Operations, Human Resources, AX, GP, SL

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 510 Super User 2026 Season 1

#2
Giorgio Bonacorsi Profile Picture

Giorgio Bonacorsi 399

#3
Adis Profile Picture

Adis 251 Super User 2026 Season 1

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans