- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
remove specific row in calculation
hello everyone i have a table
Name | Shift | Hour |
A | Worktime | 8 |
A | Worktime | 9 |
A | Worktime | 10 |
A | Worktime | 11 |
A | Break | 11 |
A | Break | 12 |
A | Worktime | 12 |
A | Worktime | 13 |
A | Meeting | 13 |
A | Meeting | 14 |
A | Meeting | 15 |
calculate ccount of work hours and count of non working
i use calculate(count(table[name]),filter(table,table[shift] = "Worktime")) and
calculate(count(table[name]),filter(table,table[shift] <> "Worktime"))
now i have worktime count is 6 and non worktime is 5, but this is wrong ,
as you see, worktime and break overlapp each others,so how can i make it that max of first breaktime which is12 to not be taken into consideration and max of meeting also so that way i have 1 count of break and 2 count of meeting
Solved! Go to Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I just created a new calculated column that find the max value filtered by name
Maxnonworking = CALCULATE(MAX(table[Hour]),FILTER(ALLEXCEPT(table,Roster[Name]),table[shift]<>"Worktime"))
then for the nonavailable shift just create a new measure:
not availibile = CALCULATE(COUNT(table[Name]),FILTER(table,table[Shift] <> "Worktime"),FILTER(table,table[Hour]<>table[Maxnonworking]))

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I just created a new calculated column that find the max value filtered by name
Maxnonworking = CALCULATE(MAX(table[Hour]),FILTER(ALLEXCEPT(table,Roster[Name]),table[shift]<>"Worktime"))
then for the nonavailable shift just create a new measure:
not availibile = CALCULATE(COUNT(table[Name]),FILTER(table,table[Shift] <> "Worktime"),FILTER(table,table[Hour]<>table[Maxnonworking]))

Helpful resources
Join us at the Microsoft Fabric Community Conference
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Power BI Monthly Update - February 2025
Check out the February 2025 Power BI update to learn about new features.

Subject | Author | Posted | |
---|---|---|---|
07-23-2024 11:55 PM | |||
05-31-2023 07:31 PM | |||
09-22-2024 11:52 PM | |||
10-22-2024 04:49 PM | |||
10-22-2024 06:09 AM |
User | Count |
---|---|
23 | |
12 | |
10 | |
10 | |
8 |
User | Count |
---|---|
16 | |
15 | |
15 | |
12 | |
10 |