Showing results for 
Search instead for 
Did you mean: 
Frequent Visitor

Slicer based on sum of field in Matrix

I am trying to create a simple slicer based on values in a Matrix, but I'm guessing that because the values are a SUM of decimals it is not working correctly.


My matrix is displaying Time Entry values using a field called "TimeEntered". This is a decimal number and was set as a Sum so that each time entry for a particular date is added up and displays in the matrix, this is working fine.


How can I create a simple slicer to show two options:
"Time Entered" - filter the matrix for all sum of TimeEntered field greater than or equal to 8 hours

"Time Missing" - filter the matrix for all sum of TimeEntered field less than 8 hours

Here is the calculated column I have tried:



ColumnTEST = IF(SUM(TableName[TimeEntered]) >= 8,"Time Entered", "Time Missing")



And it seems to be working for the individual data if I view the table directly, but in my slicer it does not work. Do I need to create a measure first somehow differently than what I am using above? Or is there any tutorial I can be pointed to that would show how to accomplish this simple task?


Helpful resources


2023 Release Wave 1 Plans

Power BI release plans for 2023 release wave 1 describes all new features releasing from April 2023 through September 2023.

Power BI Summit Carousel 2

Global Power BI Training

Make sure you register today for the Power BI Summit 2023. Don't miss all of the great sessions and speakers!

BizApps LATAM 2023

Business Application LATAM Summit 2023

Join the biggest FREE Business Applications Event in LATAM this February.

Power Platform Bootcamp

Global Power Platform Bootcamp

In this bootcamp we will deep-dive into Microsoft’s Power Platform stack with hands-on sessions and labs, delivered to you by experts and community leaders.