Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
Jitmondo
Helper III
Helper III

Function like info.View but instead shows data source for each table/query?

Hi all,

 

Currently collating a data dictionary template, great as it auto updates using some dax with variables and union.

Produces a Data Dictionary table that we can extract and link to somewhere to make a Master Data Dictionary file within Power BI

 

Problem -  I need to add in the Data Source for each table/query - I have tried:

 

  • TMDL
  • DAX Query Editor
  • M Code

Right now we can create the dictionary outside of info.view using Dax Studios DMV for measures,columns.tables, and partition but its manual and means 4 files at a time for us to update to the repository the Master Data Dictionary will run from.

 

Any ideas on how I can do this? - I am even open to having the table list and source populate as its own visual.

 

I have mangaged to get a new query with table names of all tables in file and generate a source column but Power BI wont read and populate Meta Data like that.

 

Appreciate your help as always 🙂

 

1 ACCEPTED SOLUTION
danextian
Super User
Super User

Hi @Jitmondo 

 

I don't think such a function exits. You can use INFO.PARTITIONS() in DAX query view to view query definition of a table (DAX or M) and identify the source from there.

EVALUATE
SELECTCOLUMNS (
    INFO.PARTITIONS (),
    "Table Name", [Name],
    "Query Definition", [QueryDefinition],
    "Source Category",
        IF (
            CONTAINSSTRING ( [QueryDefinition], "let Source" )
                || LEFT ( [QueryDefinition], 3 ) = "let",
            "M",
            "DAX"
        )
)

danextian_0-1754718892811.png

 





Dane Belarmino | Microsoft MVP | Proud to be a Super User!

Did I answer your question? Mark my post as a solution!


"Tell me and I’ll forget; show me and I may remember; involve me and I’ll understand."
Need Power BI consultation, get in touch with me on LinkedIn or hire me on UpWork.
Learn with me on YouTube @DAXJutsu or follow my page on Facebook @DAXJutsuPBI.

View solution in original post

4 REPLIES 4
Jitmondo
Helper III
Helper III

Sorry - I mean when I combine this across multiple reports(planning to) I will need to differentiate them with identifier like report name, I suppose I could just manually insert each time but was looking for something to automate it completely. Right now we are using Dax Studio to populate a dictionary which covers source, tables,  columns, and measures - but is done in four files - I know there is a way to automate with power shell but not so great with it 🙂 Thanks again I will try the above in my solution.

Jitmondo
Helper III
Helper III

Thank you for coming back to me Dane, tried something similiar but your post is better -  I suppose I could use infor .view for everything else except source and have this table - copy it out and into a sharpoint location with the rest of the data. It would be interesting to know if I could get the report name to populate in this table or link this up further some how.

Sorry. What do you mean by report name? DAX Query is local to the semantic model.





Dane Belarmino | Microsoft MVP | Proud to be a Super User!

Did I answer your question? Mark my post as a solution!


"Tell me and I’ll forget; show me and I may remember; involve me and I’ll understand."
Need Power BI consultation, get in touch with me on LinkedIn or hire me on UpWork.
Learn with me on YouTube @DAXJutsu or follow my page on Facebook @DAXJutsuPBI.
danextian
Super User
Super User

Hi @Jitmondo 

 

I don't think such a function exits. You can use INFO.PARTITIONS() in DAX query view to view query definition of a table (DAX or M) and identify the source from there.

EVALUATE
SELECTCOLUMNS (
    INFO.PARTITIONS (),
    "Table Name", [Name],
    "Query Definition", [QueryDefinition],
    "Source Category",
        IF (
            CONTAINSSTRING ( [QueryDefinition], "let Source" )
                || LEFT ( [QueryDefinition], 3 ) = "let",
            "M",
            "DAX"
        )
)

danextian_0-1754718892811.png

 





Dane Belarmino | Microsoft MVP | Proud to be a Super User!

Did I answer your question? Mark my post as a solution!


"Tell me and I’ll forget; show me and I may remember; involve me and I’ll understand."
Need Power BI consultation, get in touch with me on LinkedIn or hire me on UpWork.
Learn with me on YouTube @DAXJutsu or follow my page on Facebook @DAXJutsuPBI.

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

Check out the August 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.

Top Solution Authors