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

Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM. Register now.

Reply
Anonymous
Not applicable

Filtering certain columns out from matrix view

Hi All,

 

I'm having an issue with regards to the matrix functionality on power BI.

 

I have imported the following work book from excel.

 

bi1.PNG

 

When I generate the matrix in power BI, I'm getting blanks for projected sales for the first 2 years. I do not want to show those columns and only want to show the projected sale column for 2019 year only. Any idea how I can remove those views from matrix? If I try to use the exclude button and try to exclude project sales only, it removes the entire year and total sales cloumn as well.

 

bi2.PNG

 

Any advice or help would be appreciated.

1 ACCEPTED SOLUTION
v-piga-msft
Resident Rockstar
Resident Rockstar

Hi @Anonymous,

 

For your requirement, you could create a calculated column to achieve your desired output.

 

Column =
VAR sum_of_project_sales =
    CALCULATE (
        SUM ( 'Table1'[Projected Sales] ),
        ALLEXCEPT ( Table1, Table1[Year] )
    )
RETURN
    IF ( ISBLANK ( sum_of_project_sales ), 0, 1 )

Then you could drag the calculated column to visual level filter and set like below.

 

Untitled.png

 

 

More details, please refer to the attachement.

 

Best  Regards,

Cherry

Community Support Team _ Cherry Gao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

3 REPLIES 3
Ashish_Mathur
Super User
Super User

Hi,

 

You may refer to my solution in this PBI file.  My numbers are different from yours because i created a summy dataset.

 

Hope this helps.

 

Untitled.png


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/
v-piga-msft
Resident Rockstar
Resident Rockstar

Hi @Anonymous,

 

For your requirement, you could create a calculated column to achieve your desired output.

 

Column =
VAR sum_of_project_sales =
    CALCULATE (
        SUM ( 'Table1'[Projected Sales] ),
        ALLEXCEPT ( Table1, Table1[Year] )
    )
RETURN
    IF ( ISBLANK ( sum_of_project_sales ), 0, 1 )

Then you could drag the calculated column to visual level filter and set like below.

 

Untitled.png

 

 

More details, please refer to the attachement.

 

Best  Regards,

Cherry

Community Support Team _ Cherry Gao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Anonymous
Not applicable

Hi Cherry, Apologies for the late reply, your advice worked, thanks!

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

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.