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

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.

Reply
TM_
Regular 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_
Regular 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_
Regular 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
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel1

Power BI Monthly Update - May 2024

Check out the May 2024 Power BI update to learn about new features.