Skip to main content
Solved

Tag heure mois précédent (Tag for previous month hours)

  • April 2, 2026
  • 4 replies
  • 70 views

Est-ce possible de créer un Tag qui calcule les heures du mois précédent

​​​​​​​“Is it possible to create a tag that calculates the hours of the previous month?” translated by AI.

Best answer by Wouter Daniels

Si je comprends bien, vous disposez déjà d'un tag provenant de votre source de données qui indique le nombre d'heures de fonctionnement pour chaque mois ?

Actuellement, dans TrendMiner, un tag indiquant un nombre d'heures fixe ne peut être créée que sous forme de tag de calcul personnalisé (Python), ou importée via un fichier CSV. Je vous ai créé un tag que vous pouvez importer (nombre d'heures par mois dans le fuseau horaire français).

--

If I understand correctly, you already have a tag coming from your datasource with the number of operating hours in every month?

Currently in TrendMiner, a tag with the fixed number of hours can only be created as a Custom Calculation (Python) tag, or imported via csv. I have created a tag for you which you can import (number of hour per month in French timezone).

 

Wouter

4 replies

Wouter Daniels
Employee
Forum|alt.badge.img

Bonjour Daniel, 

Souhaitez-vous calculer simplement le nombre total d'heures dans un mois (par exemple, 31 jours × 24 heures), ou plus précisément la durée en heures pendant laquelle une condition de procédé est vraie au cours du mois? Quel est l'objectif du résultat de ce calcul? Est-il obligatoire que le résultat soit un nouveau tag?


Do you want to calculate just the total number of hours within one month (for example, 31days * 24 hours), or more specifically the amount of hours some process condition is true within the month? What is the purpose of the calculation outcome? Is it a requirement that the outcome is a new tag?


Wouter

  


Présentement j’ai plusieurs tag qui suive les heures de marches d’équipement. ce que je veux c’est me créer des pourcentage de marche mensuel dans mon tableau de bord, donc je veux me créer un tag calculer qui va diviser les heures de marche par les heures disponible du mois.
merci 

“Currently, I have several tags that track equipment operating hours. What I want is to create monthly operating percentages in my dashboard. So, I would like to create a calculated tag that divides the operating hours by the available hours in the month.”


Wouter Daniels
Employee
Forum|alt.badge.img

Si je comprends bien, vous disposez déjà d'un tag provenant de votre source de données qui indique le nombre d'heures de fonctionnement pour chaque mois ?

Actuellement, dans TrendMiner, un tag indiquant un nombre d'heures fixe ne peut être créée que sous forme de tag de calcul personnalisé (Python), ou importée via un fichier CSV. Je vous ai créé un tag que vous pouvez importer (nombre d'heures par mois dans le fuseau horaire français).

--

If I understand correctly, you already have a tag coming from your datasource with the number of operating hours in every month?

Currently in TrendMiner, a tag with the fixed number of hours can only be created as a Custom Calculation (Python) tag, or imported via csv. I have created a tag for you which you can import (number of hour per month in French timezone).

 

Wouter


  • Author
  • Navigator
  • April 8, 2026

wow, c’est ce que j’avais besoin. ça fonctionne très bien. 
merci, bonne journée