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

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.

Reply
Henrik_99
Resolver I
Resolver I

Exclude rows in Matrix

hi

 

I have the following scenario:

 

Matrix is not calculating the total, I'm able to create measures to count total that gives the total by Year week with SUMX;

 

= sumx(values(table1[discipline]),  [measure switch]

 

However, how can I exclude a particular row "Open comments" in total. 

 

"Open comments with numbers" shall remain in Matrix.

 

Capture.PNG

Thanks

 

Henrik

 

1 ACCEPTED SOLUTION

@Henrik_99 

Please try the following formula. If you want to see only the Row for Open Comments with no data, right-click on the field and choose "Show item with no data"

Fowmy_0-1622543343778.png

 

  

New Measurre = 
sumx(
    Filter(
           values(table1[discipline]),
           table1[discipline]<> "Open comments"
    ),
    [measure switch]
)

 

Did I answer your question? Mark my post as a solution! and hit thumbs up


Subscribe and learn Power BI from these videos

Website LinkedIn PBI User Group

View solution in original post

3 REPLIES 3
Fowmy
Super User
Super User

@Henrik_99 

You can try this modified measure:

New Measurre = 
IF( 
    SELECTEDVALUE(table1[discipline]) <> "Open comments",
    sumx(values(table1[discipline]),  [measure switch])
)
Did I answer your question? Mark my post as a solution! and hit thumbs up


Subscribe and learn Power BI from these videos

Website LinkedIn PBI User Group

Hi

 

See figure below, it doesnt  sum correctly and Open comments value disappear.

 

Capture.PNG

Rgds Henrik

@Henrik_99 

Please try the following formula. If you want to see only the Row for Open Comments with no data, right-click on the field and choose "Show item with no data"

Fowmy_0-1622543343778.png

 

  

New Measurre = 
sumx(
    Filter(
           values(table1[discipline]),
           table1[discipline]<> "Open comments"
    ),
    [measure switch]
)

 

Did I answer your question? Mark my post as a solution! and hit thumbs up


Subscribe and learn Power BI from these videos

Website LinkedIn PBI User Group

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.