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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
je_s
New Member

Filter/Remove duplicates based on table criterias

Hello

 

I need to keep track of production KPI's (stop time) based on the certain criterias mentioned below.

 

Example 1: Exclude all stops occuring during the same time as meeting, break or maintenance events. 

Example 2: Exclude TC-stops when occuring (and have the same duration) as a position stop

 

je_s_0-1663226408025.png

 

4 REPLIES 4
je_s
New Member

I'm not sure the Power Query-editor will do the trick in this case. Or do you have any suggestions? 

 

The thing is.. I want to remove all "Stopped"-events when they occurs simultaneously as a meeting/break or maintenance break and those are on diffrent rows with the same time stamp. 

Anonymous
Not applicable

My suggestion is you work on this using Power Query, as it will result a lot easier. However, should you want to pursue DAX, you can try creating a column and using an IF measure. It is not very clear what is it that differentiates the 2 examples, why is one "Actual stop" at [Position] = "TC_1" and the other at "Pos_2"? 

TC stands for Tact circuit if that makes sense. The tact circuit is always in status "stopped" when a position in status "stopped" but not the other way around. 

I've have tried using DAX and IF measures but have really got the results I was hoping for. Any suggestions?  

Anonymous
Not applicable

It might be a DAX hell to work on it by using IFs, CALCULATE, LOOKUP etc etc. My suggestion is that you use Power Query/M to deal with this. There's plenty of tools, try going on Add Column and Conditional Column:

Spooletto_1-1663228251757.png

 

Helpful resources

Announcements
July PBI25 Carousel

Power BI Monthly Update - July 2025

Check out the July 2025 Power BI update to learn about new features.

Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 community update carousel

Fabric Community Update - June 2025

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