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
TM_
Frequent Visitor

Remove blank rows from matrix after using 'All' function

Hello,

I've used the ALL function to remove all filters to provide a 'Region Median'. I've also displayed the Country Median in an adjacent column.  However, is there a way to show the Region Median only for where there are Country Median values, essentially removing all the blank Country Median rows? 

 

Region Median Formula Used: 

 

Region Median =
CALCULATE(
    [Median],
    ALL(DataTable)
)

 

E.g.: Only displaying Countries G, L, O and R

 

TM__0-1686828907022.png

Thank you. 

1 ACCEPTED SOLUTION
TM_
Frequent Visitor

@cThennakoon 

Hi,

 

Unfortunately that still did not work, but I found this solution worked: 

 

Region Median =

  CALCULATE (

    [Median] ,

    ALL(DataTable ),

    VALUES ( 'DataTable [Region] )

)

View solution in original post

4 REPLIES 4
TM_
Frequent Visitor

@cThennakoon 

Hi,

 

Unfortunately that still did not work, but I found this solution worked: 

 

Region Median =

  CALCULATE (

    [Median] ,

    ALL(DataTable ),

    VALUES ( 'DataTable [Region] )

)

cThennakoon
Regular Visitor

Easiest way you can do this is selecting is not blank filter from the filter pane as below

cThennakoon_0-1686834033847.png

 

Hello @cThennakoon

 

Thank you for your reply - I tried this, but it doesn't change the matrix at all - it's almost as if the ALL formula used for the EMEA Median values is preventing the filter from working. Is there any way to amend the ALL formula so that it doesn't show absolutely all countries included in the data source, and instead only ones with a Country Median value? 

 

TM__0-1687162356401.png

TM__1-1687162394182.png

 

Looks like  you did not click on Apply filter

cThennakoon_0-1687229684190.png

 

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