microsoft / microsoft/powerbi-powershell

How to create relationships between tables?

Open
#234 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
C#
Stars
413
Forks
134
Avg merge
33m
Merged PRs (30d)
1

Description

How can I create relationships between tables in a dataset that I create like this?

foreach($file in $files)
{ 
    ...
    foreach($col in $cols)
    {
        $columns += New-PowerBIColumn -Name $col -DataType String
    }
    $tables += New-PowerBITable -Name $file.BaseName -Columns $columns
}
$ds = New-PowerBIDataset -Name $name -Tables $tables
Add-PowerBIDataset -Dataset $ds

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

No repository files or tests are identified in the issue. Start by reviewing the Power BI dataset and table commands shown, especially New-PowerBITable, New-PowerBIDataset, and Add-PowerBIDataset, then check whether the module documents relationship creation. Done means providing a verified relationship workflow or documenting that the capability is unavailable.

Written by the indexing model from the issue text.

Assessment

Tech stack
powershell
Domain
data
Issue type
Documentation
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.