Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
1 year ago
Solved

Retrieve Columns and their descriptions from multiple semantic models

I'm trying to create an organisation wide data dictionary based on a selection of Power BI reports. I want to use column names and column descriptions that have been populated in Power BI Desktop, an...
  • Anonymous's avatar
    Anonymous
    1 year ago

    Hi Anonymous ,

     

    Thanks for reaching out to our community.

    According to my understanding, you are seeking a solution to compile data dictionaries for multiple datasets into a single report. 

    To achieve this, you can try using List.Generate() to iterate through a list of datasets and compile the data dictionary for each. 

    For example,

    //Use List.Generate to iterate through the list of datasets and get column details 
    ColumnDetailsList = List.Generate(
            () => [Index = 0, Result = GetColumnDetails(DatasetList{0}[WorkspaceName], DatasetList{0}[DatasetName])],
            each [Index] < List.Count(DatasetList),
            each [Index = [Index] + 1, Result = GetColumnDetails(DatasetList{[Index]}[WorkspaceName], DatasetList{[Index]}[DatasetName])],
            each [Result]
        ),

    If you want to learn more about it, please refer to 

    List.Generate() and Looping in PowerQuery - Exceed

     

    Best Regards,

    Stephen Tao

     

    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.