Forum Discussion

slanka's avatar
slanka
Helper I
6 years ago
Solved

Common column from two different data sets

Mates,   I have two datasets 1) Forecast 2) Actual. Both the datasets having EmployeeName in common (and same values), i have also created a relationship on EmployeeName between the two datasets. I...
  • v-frfei-msft's avatar
    6 years ago

    Hi slanka ,

     

    I have created a sample for your reference, please have a check.

    Measure = 
    VAR emname =
        MAX ( Actual[EmployeeName] )
    RETURN
        SUMX (
            Actual,
            CALCULATE (
                SUM ( Forecast[value] ),
                FILTER ( Forecast, Forecast[EmployeeName] = emname )
            )
        )
    

     

    Pbix as attached. If it doesn't meet your requirement, Kindly share your sample data and excepted result to me if you don't have any Confidential Information. Please upload your files to One Drive and share the link here.