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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

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
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

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.