Forum Discussion

lastnn30's avatar
lastnn30
Post Patron
4 years ago
Solved

Modeling is not working

Hi I have 2 tables (FactTable and dTable1, please see below)  in an excel file. I do not want to use Power Query-->merge, to get Region from the dTable1. So created 1-to-Many relationship (PBI did i...
  • Anonymous's avatar
    Anonymous
    4 years ago

    Hi lastnn30 , 

    Please refer to my pbic file to see if it helps you.

    Create a column firstly.

    Column = CALCULATE(MAX(DTable1[Region]),FILTER((DTable1),DTable1[SalesRep]=EARLIER(FactTable[SalesRep])))

    Then create a measure.

    Measure 3 = CALCULATE(SUM(FactTable[Revenue]),FILTER(ALL(FactTable),FactTable[Column]=SELECTEDVALUE(FactTable[Column])))

    If I have misunderstood your meaning, please provide your desired output with more details.

     

    Best Regards

    Community Support Team _ Polly

     

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