Forum Discussion

daedah's avatar
daedah
Icon for Helper II rankHelper II
6 years ago
Solved

calculate measure repeat maintenance

Hi

I trying calculate measure of repeat maintenace within same month of each machine_name  repaired in the same reason

Example data of  2019

Table : Maintenance 

Machine_Name               Reason                    Date          

A                                      person                     1/11/2019

B                                      spare parts               3/11/2019

C                                      Using                        4/11/2019
B                                      spare parts               15/11/2019
A                                      person                      1/12/2019

Result Of November
A                                    1

B                                    2   

C                                    1

 

Thank you for your help 🙏

  • daedah ,

     

    You can create a measure using dax as below:

    Number of job_id per month per plate_id per reason = CALCULATE(DISTINCTCOUNT(repeat[job_id]), ALLEXCEPT(repeat, repeat[job date].[Month], repeat[plate_id], repeat[Reason]))

     

     

    Community Support Team _ Jimmy Tao

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

4 Replies