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

To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount 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

 



2 REPLIES 2
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.

FBergamaschi
Solution Sage
Solution Sage

This is a blog for asking for support

Helpful resources

Announcements
September Power BI Update Carousel

Power BI Monthly Update - September 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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