Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
6 years ago
Solved

Using Monthly Data for Weekly Calculations

Hello,   I'm having difficulty figuring out how to solve my data shortage problem. I have a data set that is calculating the number of new accounts per employees, but my new accounts data is weekly...
  • parry2k's avatar
    6 years ago

    Anonymous here is the output and measure to calculate this

     

     

    Measures

    Total Accounts = SUM ( Emp[Accounts] )
    
    Emp Count = 
    VAR m = MAX ( 'Date'[Month] )
    RETURN 
    CALCULATE ( 
        SUM ( Emp[Employee Count] ),
        ALL ( 'Date' ), 
        'Date'[Month] = m 
    ) * 
    DIVIDE ( [Total Accounts], [Total Accounts] ) 
    
    Accts/Emp = DIVIDE ( [Total Accounts], Emp[Emp Count] ) 

     

    Follow this to add date dimension if you don't have one


    https://perytus.com/2020/05/22/create-a-basic-date-table-in-your-data-model-for-time-intelligence-calculations/

     

    I would  Kudos if my solution helped. 👉 If you can spend time posting the question, you can also make efforts to give Kudos whoever helped to solve your problem. It is a token of appreciation!

    Visit us at https://perytus.com, your one-stop shop for Power BI related projects/training/consultancy.