Forum Discussion

UmeshGoti's avatar
UmeshGoti
Helper I
1 year ago
Solved

Need to establish relation between tables in create semantic API for PowerBi Service

Currently i am able to create semantic layer through fabric API (https://learn.microsoft.com/en-us/rest/api/fabric/semanticmodel/items/create-semantic-model?tabs=HTTP&tryIt=true&source=docs#code-try...
  • Anonymous's avatar
    Anonymous
    1 year ago

    Hi UmeshGoti ,

    Please try to include the relationships in your JSON request body to establish relationships between tables in the semantic model for Power BI Service using the Fabric API, later check if it can work or not:

      "relationships": [
          {
            "name": "Relationship1",
            "fromTable": "Claim_asof_fact",
            "fromColumn": "OPEN_CLAIM_COUNT",
            "toTable": "Claim_asof_fact2",
            "toColumn": "OPEN_CLAIM_COUNT",
            "crossFilteringBehavior": "oneDirection",
            "relationshipType": "regular"
          }
        ]

    Best Regards