Forum Discussion

Oded-Dror's avatar
Oded-Dror
Helper III
1 year ago
Solved

Data dictionary

Hi there, I was able to get the table name original and rename  let Source = Sql.Database("localhost", "AdventureWorksDW2022"), dbo_DimProduct = Source{[Schema="dbo",Item="DimProduct"]}[Data] ...
  • hnguy71's avatar
    hnguy71
    1 year ago

    Oded-Dror 

    At the moment, there's no direct way of generating this in DAX, but there are some workarounds...

     1. You can directly query your model using the DAX Query View. You can then check for it in the "QueryDefinition" field.

     

    2. You can use a 3rd party application to retrieve that information such as DAX Studio and query the DMV and selecting the schema partitions:

     

    3. Third method, if your model is saved on Power BI service, you can query the same model to return you all your query definitions:

     

    AnalysisServices.Database("powerbi://api.powerbi.com/YOUR_WORKSPACE_ID" "YOUR_DATASET_NAME", [Query= "select * from $SYSTEM.TMSCHEMA_PARTITIONS"])

     

    Hope that helps!

  • Oded-Dror's avatar
    Oded-Dror
    1 year ago

    Thanks,

     

    It works