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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Newguy12
Regular Visitor

Machine Data Set from MongoDB

I need help with my MongoDB data on powerBI. I will like to be able to calculate the time it takes to produce a certain length, how much is produced each day on powerbi



my mongoDB data has the following fields

TimeStamp: This field stores the date and time when the data point was recorded.

data.line_speed: This field probably represents the current line speed of the machinery in the manufacturing process. Line speed is the speed at which the production line or conveyor belt is moving.

data.active_power: This field likely contains the active power consumption of the machinery. Active power refers to the actual power being used to perform useful work.

data.line_speed_nom: This is the nominal or expected line speed for the machinery. It’s useful for comparing the actual line speed to the expected speed.

data.machine_status: This field likely stores the current status of the machine, such as “running,” “idle,” “maintenance,” etc. It gives insight into whether the machine is operational.

data.progress_remaining_minute: This field possibly indicates the estimated time remaining for the current process step or task, measured in minutes.

data.final_die_diameter: This is the diameter of a die used in the manufacturing process. Dies are often used in shaping materials.

data.tk1_carrier1_active and data.tk1_carrier2_active: These fields represent the activity status of two carriers or conveyors in the manufacturing process. They could be binary indicators of whether these carriers are active or not.

data.tk1_progress_remaining_time: Similar to data.progress_remaining_minute, this field indicate the remaining time for a specific task associated with tk1 (which likely stands for “task 1”).

data.tk1_progress_length, data.tk1_progress_length_target: These fields pertain to the length of progress made in task 1 and the target length for task 1, respectively.

11.data.tk2_progress_remaining_time: Just like the tk1 related fields, these indicate the remaining time for a specific task associated with tk2.

data.tk2_progress_length**, data.tk2_progress_length_target: Similarly, these fields relate to the length of progress made in task 2 and the target length for task 2.

a document is updated every 10 second into the database

examples of a document is found below

TimeStampdata.line_speeddata.active_powerdata.line_speed_nomdata.machine_statusdata.progress_remaining_minutedata.final_die_diameterdata.temperature_gear_oildata.temperature_lubricantdata.anneal_currentdata.anneal_voltagedata.temperature_anneal_coolantdata.tk1_carrier1_activedata.tk1_carrier2_activedata.tk1_progress_remaining_timedata.tk1_progress_lengthdata.tk1_progress_length_targetdata.tk2_progress_remaining_timedata.tk2_progress_lengthdata.tk2_progress_length_target
2023-07-13T13:14:21.466Z12238.86453251209.18E-412.2548.1982498239.06252223.20043935.6224288940.219905851011.642971043417.060547118000028500
2023-07-13T13:14:31.467Z12238.86453251209.18E-412.2548.1982498239.06252223.20043935.6224288940.219905851011.642971043417.060547118000028500
2023-07-13T13:14:41.470Z12238.86453251209.18E-412.2548.1982498239.06252223.20043935.6224288940.219905851011.642971043417.060547118000028500
2023-07-13T13:14:51.470Z12238.86453251209.18E-412.2548.1982498239.06252223.20043935.6224288940.219905851011.642971043417.060547118000028500
2023-07-13T13:15:01.470Z12238.86453251209.18E-412.2548.1982498239.06252223.20043935.6224288940.219905851011.642971043417.060547118000028500
2023-07-13T13:15:11.468Z12238.86453251209.18E-412.2548.1982498239.06252223.20043935.6224288940.219905851011.642971043417.060547118000028500
2023-07-13T13:15:21.460Z12238.86453251209.18E-412.2548.1982498239.06252223.20043935.6224288940.219905851011.642971043417.060547118000028500
2023-07-13T13:15:31.461Z12238.86453251209.18E-412.2548.1982498239.06252223.20043935.6224288940.219905851011.642971043417.060547118000028500
2023-07-13T13:15:41.461Z12238.86453251209.18E-412.2548.1982498239.06252223.20043935.6224288940.219905851011.642971043417.060547118000028500
2023-07-13T13:15:51.470Z12238.86453251209.18E-412.2548.1982498239.06252223.20043935.6224288940.219905851011.642971043417.060547118000028500
2023-07-13T13:16:01.469Z12238.86453251209.18E-412.2548.1982498239.06252223.20043935.6224288940.219905851011.642971043417.060547118000028500
2023-07-13T13:16:11.469Z12238.86453251209.18E-412.2548.1982498239.06252223.20043935.6224288940.219905851011.642971043417.060547118000028500
2023-07-13T13:16:21.469Z12238.86453251209.18E-412.2548.1982498239.06252223.20043935.6224288940.219905851011.642971043417.060547118000028500
2023-07-13T13:16:31.469Z12238.86453251209.18E-412.2548.1982498239.06252223.20043935.6224288940.219905851011.642971043417.060547118000028500
2023-07-13T13:16:41.464Z12238.86453251209.18E-412.2548.1982498239.06252223.20043935.6224288940.219905851011.642971043417.060547118000028500
2023-07-13T13:16:51.470Z12238.86453251209.18E-412.2548.1982498239.06252223.20043935.6224288940.219905851011.642971043417.060547118000028500
2023-07-13T13:17:01.463Z12238.86453251209.18E-412.2548.1982498239.06252223.20043935.6224288940.219905851011.642971043417.060547118000028500
2023-07-13T13:17:11.463Z12238.86453251209.18E-412.2548.1982498239.06252223.20043935.6224288940.219905851011.642971043417.060547118000028500
2023-07-13T13:17:21.470Z12238.86453251209.18E-412.2548.1982498239.06252223.20043935.6224288940.219905851011.642971043417.060547118000028500
2023-07-13T13:17:31.466Z12238.86453251209.18E-412.2548.1982498239.06252223.20043935.6224288940.219905851011.642971043417.060547118000028500
2023-07-13T13:17:41.465Z12238.86453251209.18E-412.2548.1982498239.06252223.20043935.6224288940.219905851011.642971043417.060547118000028500
2023-07-13T13:17:51.467Z12238.86453251209.18E-412.2548.1982498239.06252223.20043935.6224288940.219905851011.642971043417.060547118000028500
2023-07-13T13:18:01.469Z12238.86453251209.18E-412.2548.1982498239.06252223.20043935.6224288940.219905851011.642971043417.060547118000028500
2023-07-13T13:18:11.469Z12238.86453251209.18E-412.2548.1982498239.06252223.20043935.6224288940.219905851011.642971043417.060547118000028500
2023-07-13T13:18:21.469Z12238.86453251209.18E-412.2548.1982498239.06252223.20043935.6224288940.219905851011.642971043417.060547118000028500
2023-07-13T13:18:31.461Z12238.86453251209.18E-412.2548.1982498239.06252223.20043935.6224288940.219905851011.642971043417.060547118000028500

progress_length will change till it hits length target before turning 0 then it increases again. the progress length target will remain the same until new target is set



2 REPLIES 2
foodd
Community Champion
Community Champion

Recommend handling this upstream through the use of a view, and then leveraging the view in your model.  This would be less costly, an easier to maintain.

What do you mean upstream?

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.