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
jasiluka_2020
New Member

Measure referencing another measure that has ISINSCOPE

Hi guys,

 

I have a question around ISINSCOPE formula.

Lets say i have a Table1 with Column "Value" as a whole number.

Table also has a column called Type.

e.g.

Type / Value

Ben / 6

Ben / 12

John / 6

 

I create a measure using isinscope, to sum Values based on Type (only at type level) using ISINSCOPE:

Measure1 =

if(ISINSCOPE('Table'[Type]),

sum('Table'[Value]),

blank) 

 

This measure will return blank at Row total level if we have a matrix with Types in rows and measure as values.

 

Now I'd like to create a 2nd measure that would reference to a 1st measure at Type level and calculate all Values for Ben.

Measure2 =

calculate([Measure1],

filter('Table','Table'[Type]="Ben"))

 

Such measure returns blank because Measure1 has ISINSCOPE formula.

Question: how can i specify in Measure2 to which hierarchy to go to apply the desired filter in order to obtain Values for Type = BEN ?

 

Thank you

1 REPLY 1
daxer-almighty
Solution Sage
Solution Sage

ISINSCOPE works only when the column under it is a grouping column in a visual (SUMMARIZECOLUMNS). If you're creating a measure that is to be used in another, then this is useless because you're not grouping by anything since you can't use SUMMARIZECOLUMNS in a measure. Usually, you should in such cases use HASONEVALUE instead. Measures with ISINSCOPE should only ever be use as top-level measures, not sub-measures. The same is true for measures which contain the function ALLSELECTED.

Helpful resources

Announcements
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!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

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.