Forum Discussion

PowerRobots99's avatar
PowerRobots99
Icon for Helper II rankHelper II
1 year ago
Solved

Drillthrough Interesting Challange

Hello Learners,   We have requirements wherein we have two measures, Measure A and Measure B, which fetches corresponding data after drilling through,   We have to develop Measure C on top of Mea...
  • johnt75's avatar
    1 year ago

    You could create a measure like

    MeasureC =
    IF (
        ISINSCOPE ( 'Table'[ID] ),
        SWITCH (
            TRUE,
            NOT ISBLANK ( [Measure A] ), "A",
            NOT ISBLANK ( [Measure B] ), "B"
        )
    )
    

    as long as measures A and B are mutually exclusive