Forum Discussion

PBI5851's avatar
PBI5851
Helper V
6 years ago
Solved

Calculate average active length

Hello, I have a table that captures for every day each and every product that is active.  Ex:  Date ProductID Date ProductID 1/1/2020 PID234 1/1/2020 PID444 1/1/2020 PID657 1/2...
  • ryan_mayu's avatar
    6 years ago

    PBI5851 

     

    not very clear about your request. Could you please share the expected output for your sample data?

  • ryan_mayu's avatar
    ryan_mayu
    6 years ago

    PBI5851 

    please try this

    average = 
    COUNTROWS('dateproductid')/DISTINCTCOUNT(dateproductid[ProductID])