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
Krzysztof1
Regular Visitor

Hiding selective rows in matrix

Hi Colleagues

Colud you advise what measure should I apply to get the effect : hiding selective rows in matrix without affecting subtotals 
I am preparing the report and I want to show only 1 seleted category with values but also incl. in total and subototal
Thx
BR 
Chris

4 REPLIES 4
Anonymous
Not applicable

Hi @Krzysztof1 ,

 

Maybe you can try formula like below:

Visible Sales = 
IF (
    MAX(Sales[Category]) = "SelectedCategory",
    MAX(Sales[SalesAmount]),
    BLANK()
)
Total Sales = 
SUMX (
    ALLSELECTED(Sales),
    Sales[SalesAmount]
)

vkongfanfmsft_0-1721382684783.png

Best Regards,
Adamk Kong

 

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

Many thanks 
I am still looking for another soluition
My problem is as follows

I want to show only selectedCategory in Region1 and Region2 and hide theAnotherCategory but show also orignal Sum Of SelectedCategory and Sum of Region

Krzysztof1_0-1721409780416.png

 

Daniel29195
Super User
Super User

@Krzysztof1 

if you are using a simple table you can use isfiltered function

if you are using a matrix visual you can use isinscope function 

 

these 2 functions can be used to control the calculation base on the where you are in a visual ( row level , total level , subtotal level) 

 

hope this helps 

 

 

 

Many thanks Daniel29195 but i am still don`t know how it should work. When I connect this function with SUM(...) this summirize only selected value but I wonder if there is possible to sum up all values as subtotal and total but show only one category

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.

Top Solution Authors