Results 1 to 3 of 3

DAX Time intelligence functions

Threaded View

  1. #1
    Forum Contributor
    Join Date
    08-03-2021
    Location
    London
    MS-Off Ver
    365
    Posts
    773

    DAX Time intelligence functions

    Hi,

    Can someone help or point me in the direction of information re time intelligence, and how they work in relation to the 'calendar date' table and the date table coming from a fact or dim table.


    I have two very similar measures ;


       3 day back dateadd:=CALCULATE([sSales], DATEADD(fSales[Order Date],-3,DAY))
    this is using the dats from the sales order date column and seems to work fine with a pivot created using that date table.

    this


    fSales Dates one month back:=CALCULATE([sSales], DATEADD(fSales[Order Date],-1,MONTH))

    this does not work even though the only thing changed is the number and type of period?
    if i re write using calendar dates and create pivot uinng those dates it woks fine, but then I can't use a measure such as ;

    Rolling 3 day total:=VAR mdate = MAX(fSales[Order Date])
    RETURN
    SUMX(FILTER(ALL(fSales[Order Date]),fSales[Order Date]<= mdate &&
    fSales[Order Date] > mdate - 3 ),[sSales] ),

    In fact I 'd be interested to know if there's a way of writing this using the 'Calendar Date' table. I've attached a very simple workbook, showing the two pivots and the above measures.

    Richard.
    Attached Files Attached Files

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Replies: 0
    Last Post: 08-03-2022, 06:32 AM
  2. Replies: 0
    Last Post: 08-03-2022, 06:32 AM
  3. I need a forum for SAP Business Intelligence Objects
    By Rick-O-Shay in forum The Water Cooler
    Replies: 0
    Last Post: 06-02-2020, 06:17 PM
  4. AI (artificial intelligence) to analyse data
    By excelnabb in forum Excel General
    Replies: 4
    Last Post: 04-26-2019, 08:37 AM
  5. A challenging business intelligence issue with subtotals
    By larrygoldstein in forum Excel General
    Replies: 4
    Last Post: 09-15-2014, 10:34 AM
  6. business intelligence using excel
    By sowherdo in forum Excel General
    Replies: 1
    Last Post: 06-27-2013, 09:33 AM
  7. Adding intelligence to data validations
    By ValentineNicole in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 06-21-2010, 06:22 AM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1