Forum Discussion

trailmax's avatar
trailmax
Frequent Visitor
7 years ago
Solved

Multiple columns join/goup

Hi   I'm new to PowerBI, though I have developer background. I'm stuck now on a report that has 2 columns: one with vehicles count by type, location and month and another with days in service of ve...
  • v-yulgu-msft's avatar
    7 years ago

    Hi trailmax,

     

    Please try this measure:

    sum measure =
    CALCULATE (
        SUM ( Service[ServiceLength] ),
        FILTER (
            ALLSELECTED ( Service ),
            Service[Date] = SELECTEDVALUE ( FleetCount[Date] )
                && Service[Location] = SELECTEDVALUE ( FleetCount[Location] )
                && Service[Type] = SELECTEDVALUE ( FleetCount[Type] )
        )
    )

    Best regards,

    Yuliana Gu