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

The Power BI Data Visualization World Championships is back! It's time to submit your entry. Live now!

Reply
leebaldwin
Helper I
Helper I

Matrix & Slicer Not Playing Together

Hey there:

So, I have a report that I have created a matrix and slicer for along with multiple measures. This is not something new as I have created these before; however, my matrix does not seem to to want to remove all the columns except for the one chosen. As you will see, I have chosen a single bucket, but the matrix is still showing all columns. I also captured all of the calculations that are used as well. What could I possibly be missing here?

leebaldwin_0-1751984825923.png

 

1 ACCEPTED SOLUTION
MasonMA
Community Champion
Community Champion

@leebaldwin 

 

Hi,

You may need to use a disconnected table and use this table for your slicer.

AgingBuckets = DATATABLE(
    "Bucket", STRING,
    {
        {"Current"},
        {"1-30 Days"},
        {"31-60 Days"},
        {"61-90 Days"},
        {"91-120 Days"},
        {"121-150 Days"},
        {"151-180 Days"},
        {"181-365 Days"},
        {">365 Days"}
    }
)

 

then try using SWITCH and SELECTEDVALUE to switch your measures

SelectedBucketValue = 
SWITCH(
    SELECTEDVALUE('Aging Bucket'[Bucket]),
    "Current", [Current],
    "1-30 Days", [1_30_Days],
    "31-60 Days", [31_60_Days],
    "61-90 Days", [61_90_Days],
    "91-120 Days", [91_120_Days],
    "121-150 Days", [121_150_Days],
    "151-180 Days", [151_180_Days],
    "181-365 Days", [181_365_Days],
    ">365 Days", [Over_365_Days]
)

 

View solution in original post

4 REPLIES 4
Anonymous
Not applicable

Hi @leebaldwin,

Thanks for reaching out to the Microsoft fabric community forum.

It looks like even after selecting a single aging bucket in the slicer, the matrix continues to display all the aging bucket columns, rather than just the one selected. This behavior is expected because Power BI does not dynamically hide or show measure columns in a matrix based on slicer selections unless you use field parameters or a single dynamic measure driven by a disconnected table and a SWITCH logic. Since the user is using separate static measures, selecting a bucket in the slicer does not remove the other measures from the matrix. 

As @MasonMA has responded to your query, kindly go through his response and check if the issue can be resolved.

 

I would also take a moment to thank @MasonMA and @lbendlin, for actively participating in the community forum and for the solutions you’ve been sharing in the community forum. Your contributions make a real difference.

 

If I misunderstand your needs or you still have problems on it, please feel free to let us know.  

Best Regards,
Hammad.

MasonMA
Community Champion
Community Champion

@leebaldwin 

 

Hi,

You may need to use a disconnected table and use this table for your slicer.

AgingBuckets = DATATABLE(
    "Bucket", STRING,
    {
        {"Current"},
        {"1-30 Days"},
        {"31-60 Days"},
        {"61-90 Days"},
        {"91-120 Days"},
        {"121-150 Days"},
        {"151-180 Days"},
        {"181-365 Days"},
        {">365 Days"}
    }
)

 

then try using SWITCH and SELECTEDVALUE to switch your measures

SelectedBucketValue = 
SWITCH(
    SELECTEDVALUE('Aging Bucket'[Bucket]),
    "Current", [Current],
    "1-30 Days", [1_30_Days],
    "31-60 Days", [31_60_Days],
    "61-90 Days", [61_90_Days],
    "91-120 Days", [91_120_Days],
    "121-150 Days", [121_150_Days],
    "151-180 Days", [151_180_Days],
    "181-365 Days", [181_365_Days],
    ">365 Days", [Over_365_Days]
)

 

lbendlin
Super User
Super User

Are you using Field Parameters for these measures?

My measures all look like <measure_name> = calculate(sum(table[col]),table[calculation_name] = "<bucket>"

Helpful resources

Announcements
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.