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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

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
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.