Forum Discussion

gabrielrosa's avatar
gabrielrosa
Frequent Visitor
6 years ago
Solved

How to count two columns with names without repeating?

Hello, friends.   I have a problem.    I have a data base of production, and every machine entry I have the name of the operator who was producing on this. But, some days, I have two operator in...
  • Ashish_Mathur's avatar
    Ashish_Mathur
    6 years ago

    Hi,

    In the Query Editor, right click on the Operadores column and select Split column.  Split by rows there.  Create a Calendar Table and build a relationship from the Data column to the Date column of the Calendar Table.  Create a slicer from the Date column of the Calendar Table and select any date there.  Write this measure

    =DISTINCTCOUNT('Table1'[Operadores])

    Hope this helps.