Forum Discussion

Dunner2020's avatar
Dunner2020
Post Prodigy
5 years ago
Solved

Creating sum column in dimension table

Hi there, I have a data model which looks as follow:   The daily activity table contains fine-grained data. Now I want to create two columns in the Master table which contains sum of EventDu...
  • jdbuchanan71's avatar
    jdbuchanan71
    5 years ago

    The problem you are having in your original view is the EpochHH in the master table is only in 30 min increments where the EpochHH on the 'Daily Activity' is in 1 minute increments.  If you fix your Master table to be in 1 min increments then this will sum all the amounts from the 'Daily Activity' onto the Master.

    Event Duration = CALCULATE(SUM('Daily Activity'[EventDuration]))