Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
dkdirenzo
Helper I
Helper I

Use 2 measures in one column

Hi,

 

I tried using Switch, Switch True, functions for this but no variations seem to be working. I have 2 measures calculated and I want "PY Alts Book Yield" to apply where the row label = "Alternatives" and the "Book Yield" measure to apply for the other row labels. Is this possible without have to create a measure for each specific line item?

 

dkdirenzo_0-1717016330970.png

 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @dkdirenzo ,

 

Please see this example. I show the value of measure in ‘Canada’ and measure2 or null in the other fields.

 

Measure =
"test1"

Measure 2 =
"test2"
Measure3 =
IF (
    ISINSCOPE ( financials[Product] ),
    financials[Measure 2],
    IF ( MAX ( financials[Country] ) = "Canada", financials[Measure], BLANK () )
)

 

vkaiyuemsft_0-1717033576344.png

 

The ISINSCOPE function returns true when the specified column is a level in the level hierarchy. with the help of this function different values can be returned at different levels of the matrix, for more details see the documentation: ISINSCOPE function (DAX) - DAX | Microsoft Learn.

 

If your Current Period does not refer to this, please clarify in a follow-up reply.

 

Best Regards,

Clara Gong

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

View solution in original post

2 REPLIES 2
Anonymous
Not applicable

Hi @dkdirenzo ,

 

Please see this example. I show the value of measure in ‘Canada’ and measure2 or null in the other fields.

 

Measure =
"test1"

Measure 2 =
"test2"
Measure3 =
IF (
    ISINSCOPE ( financials[Product] ),
    financials[Measure 2],
    IF ( MAX ( financials[Country] ) = "Canada", financials[Measure], BLANK () )
)

 

vkaiyuemsft_0-1717033576344.png

 

The ISINSCOPE function returns true when the specified column is a level in the level hierarchy. with the help of this function different values can be returned at different levels of the matrix, for more details see the documentation: ISINSCOPE function (DAX) - DAX | Microsoft Learn.

 

If your Current Period does not refer to this, please clarify in a follow-up reply.

 

Best Regards,

Clara Gong

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

This worked perfectly. Thank you so much!

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors