Forum Discussion

cnesr's avatar
cnesr
Frequent Visitor
8 years ago
Solved

Efficient Date-Time Table Creation Using DAX

Hello,   Super new Power BI user. Thanks for the help and apologies for the new guy questions.   I am looking to create a Date-Time table by hour (automatically updates based on new data added to...
  • Seward12533's avatar
    8 years ago

    Here is a link to a previous discusson on creating the Date Time Table.

     

    http://community.powerbi.com/t5/Desktop/Multi-level-aggregation-using-DAX-measures/m-p/466016#M216385

     

    Don't really have the time to answer all your questions right now but the short verison is the time Intelligence features of DAX are amazing and it handles most of the filter contriants and aggregation for you.

     

    Vehicle Volume on Mondays for the 10 Oclock Hour = CALCULATE(SUM(Counts),date[day]="Monday"&&Date[hour]=10)

     

    Just Drop this measure in a chart and add Months or any other field form your date table on the axis and BOOM!!

     

    Good Luck.