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
Danny_Stultiens
Frequent Visitor

Filter time series data based on other time series

Hi all,

 

I'm looking for a solution for the following issue;

 

I have 2 tables;

- Data from an production machine that is showing messages when there is a breakdown (Machine has some error whereby it stops working). This data is including timestamp for start and end of the breakdown. Data is a few months history now.

- Data from the same machine when it's being cleaned (including timestamp for start and end of the cleaning). Cleaning is done once per day, but not always at the sime time.

 

I would like to exclude all breakdown error messages from the machine when it is being cleaned. 

For that, I'm looking for a solution whereby I can add a column in the error messages table where I can print whether the machine is in cleaning or in production.

With this column, I would like to be able to provide a filter to only show the breakdown messages during production.

 

Below some dummy data to make my question more visible;

Cleaning data;

Timestamp startTimestamp endStatus
5-6-2022 01:30:255-6-2022 03:50:52Cleaning
5-6-2022 23:57:076-6-2022 02:10:05Cleaning
7-6-2022 00:01:557-6-2022 02:50:29Cleaning
7-6-2022 23:47:158-6-2022 02:04:46Cleaning
9-6-2022 00:38:239-6-2022 03:01:31Cleaning
10-6-2022 01:49:5310-6-2022 03:59:38Cleaning

 

Breakdown data, the last column (Status) is the one I would like to generate based on the cleaning table;

Timestamp startTimestamp endBreakdown messageStatus
5-6-2022 12:38:525-6-2022 12:42:58FC446ST1Production
8-6-2022 06:37:148-6-2022 06:39:20FC446ST1Production
9-6-2022 02:43:349-6-2022 02:47:40FC440ST5Cleaning

 

I really appreciate some help with this.

 

Thanks in advance!


With kind regards,

 

Danny

2 REPLIES 2
v-yiruan-msft
Community Support
Community Support

Hi @Danny_Stultiens ,

Are you trying to create a calculated column [Status] in 'Breakdown data'  table based on the data of 'Cleaning data' table? Based on the two table data you provided, it seems that the two tables are not specifically related (same field information) and cannot be compared horizontally over time. Could you please provide more details about the results you want (calculation logic, more data and screenshots, etc.). It is better if you can share a simplified pbix file. You can refer the following link to upload the file to the community. Thank you.

How to upload PBI in Community

Best Regards

Community Support Team _ Rena
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Hi Rena,

I'm sorry for the long delay. In the meantime I tried to resolve this issue in the source data, but that turned out to be impossible. So the question still remains to solve it in PowerBI.


I made a simplified pbix file. The instruction you send indicated to provide a Gdrive link and modified the access to "everyone". I hope this works;

https://drive.google.com/file/d/1Bo0xs6g1em8UPxwkD-7rmTebYTAh9q50/view?usp=drivesdk 

 

Thanks again!

 

With kind regards,

Danny

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.