- 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
Exclude certain rows
Hello everyone,
I hope you can help me, i need to exlude the rows wich have status code U only if there is another row with same date, shift and lineguide and with status code A with earlier start time.
Any ideas ?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi, @Ahmedismaeell
You can try the following methods.
TimeA = CALCULATE(MIN('Table'[StartTime]),FILTER(ALLEXCEPT('Table','Table'[ScheduleDate],'Table'[Shifts],'Table'[LineGuid]),[StatusCode]="A"))
TimeU = CALCULATE(MIN('Table'[StartTime]),FILTER(ALLEXCEPT('Table','Table'[ScheduleDate],'Table'[Shifts],'Table'[LineGuid]),[StatusCode]="U"))
Measure = IF([TimeA]<[TimeU]&&SELECTEDVALUE('Table'[StatusCode])="U",1,0)
Result:
Is this the result you expect? Please see the attached document.
Best Regards,
Community Support Team _Charlotte
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi, @Ahmedismaeell
You can try the following methods.
TimeA = CALCULATE(MIN('Table'[StartTime]),FILTER(ALLEXCEPT('Table','Table'[ScheduleDate],'Table'[Shifts],'Table'[LineGuid]),[StatusCode]="A"))
TimeU = CALCULATE(MIN('Table'[StartTime]),FILTER(ALLEXCEPT('Table','Table'[ScheduleDate],'Table'[Shifts],'Table'[LineGuid]),[StatusCode]="U"))
Measure = IF([TimeA]<[TimeU]&&SELECTEDVALUE('Table'[StatusCode])="U",1,0)
Result:
Is this the result you expect? Please see the attached document.
Best Regards,
Community Support Team _Charlotte
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources
Subject | Author | Posted | |
---|---|---|---|
11-14-2024 12:15 PM | |||
01-07-2025 11:42 PM | |||
01-24-2025 08:54 AM | |||
08-29-2024 12:09 AM | |||
12-21-2020 02:39 AM |
User | Count |
---|---|
14 | |
13 | |
11 | |
10 | |
8 |
User | Count |
---|---|
19 | |
16 | |
14 | |
13 | |
11 |