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
Sania-F
Resolver I
Resolver I

use ISINSCOPE for increased readability in Matrix visual

below measures are used to calculate the sales percentage at an hierarchical level.

measure 1: 
Sales % Group_reg_county =
 DIVIDE(
     SUM(Sales[Sales]),
     CALCULATE(
         SUM(Sales[Sales]),
         REMOVEFILTERS(
             Region[Region],
             Region[Country]
         )
     )
 )
 
 measure 2:
 
Sales % Group_r_c =
 IF(
     ISINSCOPE(Region[Region])
         || ISINSCOPE(Region[Country]),
     DIVIDE(
         SUM(Sales[Sales]),
         CALCULATE(
             SUM(Sales[Sales]),
             REMOVEFILTERS(
                 Region[Region],
                 Region[Country]
             )
         )
     )
 )

Both measures give same results, just the readability is better with ISINSCOPE.
SaniaF_0-1758712148578.png

 



3 REPLIES 3
v-karpurapud
Community Support
Community Support

Hi @Sania-F 

We really appreciate you taking the time to post this! Your explanation of the two approaches is clear and will definitely help others who run into similar use cases. But just for clarity, this space is primarily focused on answering specific questions, while detailed write-ups like yours are best shared on the Fabric Community Blog, where they’ll get even more visibility and engagement.

 

Regards,
Microsoft Fabric Community Support Team.

Thankyou for your suggestion 🙂

FBergamaschi
Solution Sage
Solution Sage

This is a blog for asking for support

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.