Reply
PowerRobots99
Helper II
Helper II

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 Measure A and Measure B, which would fetch entire data that fetched out by Measure A and Measure B, also we need additional flag in the drillthrough data indicating typical line row is from Measure A or Measure B.

 

PowerRobots99_0-1731408230926.png

 

Is this possible ?

   

 

 

 

1 ACCEPTED SOLUTION
johnt75
Super User
Super User

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

View solution in original post

3 REPLIES 3
johnt75
Super User
Super User

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

Thank you for the reply,

But, what is Table['ID']?

That's intended to be the column you display in the table / matrix visuals.

avatar user

Helpful resources

Announcements
March PBI video - carousel

Power BI Monthly Update - March 2025

Check out the March 2025 Power BI update to learn about new features.

March2025 Carousel

Fabric Community Update - March 2025

Find out what's new and trending in the Fabric community.

Top Solution Authors (Last Month)
Top Kudoed Authors (Last Month)