Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
7 years ago
Solved

Creating multiple relationships in Power BI

Hi. I'm trying to create a dashboard for product/intermediate demand forecast. I have 4 tables: Product PID: Product ID (primary key) Product name Product PPC: a serial number from another syste...
  • Anonymous's avatar
    Anonymous
    7 years ago

    I've finally found the answer: Below is the schema:

    Schema

    I've created two meausres. The first one in the "PRODUCT" table named "Product Volume":

    Product Volume = CALCULATE(SUM(FORECAST[Volume]))
     
    The 2nd is in the "RECIPE" table named "Intermediate Volume":
    Intermediate Volume =
    IF (
    HASONEVALUE ( INTERMEDIATE[IID] ),
    SUMX (
    RECIPE,
    RECIPE[Percent] * 'PRODUCT'[Product Volume]
    ),
    BLANK()
    )
     

     

     

    And this worked perfectly.