Forum Discussion

Jitmondo's avatar
Jitmondo
Helper III
1 year ago
Solved

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 somewhe...
  • danextian's avatar
    1 year ago

    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"
            )
    )