Home > PowerPivot > Screencast: Introduction to time intelligent functions in PowerPivot

Screencast: Introduction to time intelligent functions in PowerPivot

One of the great features of PowerPivot is DAX, especially the time intelligent functions are great. This video gives a introduction on starting with the time intelligent functions in DAX:

For a complete list of DAX time intelligent functions check the site of Vidas Matelis. One of the main DAX functions used is the Calculate function, Marco Russo created a excellent post on this function.

Categories: PowerPivot Tags:
  1. Shuwi
    January 12th, 2010 at 20:37 | #1

    Very nice and informative screencast Kasper ! Thank you :)

  2. January 13th, 2010 at 03:37 | #2

    Great examples Kasper!

  3. John
    January 14th, 2010 at 01:38 | #3

    FINALLY!! Some real live examples. THANK YOU! There’s only so much syntax I can handle trying to figure out DAX / Measures.

  4. greg kramer
    January 14th, 2010 at 17:17 | #4

    Starting the global Kasper for PowerPivot President campaign

  5. January 21st, 2010 at 17:17 | #5

    Kasper – great example and tremendously helpful to see it worked. Thanks

    HELP – Can you please clarify that slicers applied to an example like this will not be applied because of the need to use “ALL(table)” in the CALCULATE function. This is what I am finding in my example.

  6. Kasper de Jonge
    January 21st, 2010 at 18:38 | #6

    Hi @Frank ,

    I know what you mean, this is indeed true when have your facts and dates in the same table, The ALL overwrites the slicer selection.

    What you can do is copy your date values to a new excel sheet, use the remove duplicate function and load it to PowerPivot by using linked tables. Create a key and a relationship. Then use the date column from the new table in your timeintelligent functions and use ALL(DATETABLE) instead of all(facttable). This should work, i did it myself recently. I’m figuring out how we can do it without resorting to this workaround.

    Kasper

  7. Brad
    February 9th, 2010 at 06:32 | #7

    Kasper,

    Great article and great blog.

    Do these functions work when the financial year differs from the Calendar year. Here in Australia her have a Jul-Jun Financial year we are always doing YTD type calculations.

    Thanks.

  8. Kasper de Jonge
    February 9th, 2010 at 18:18 | #8

    @Brad
    Hi Brad, i created a blog post on how to do this: http://business-intelligence.kdejonge.net/using-time-intelligent-powerpivot-functions-with-fiscal-year

    Hope this solves your problem.

  9. Simon Taylor
    March 2nd, 2011 at 11:39 | #9

    I am using your example calculate functions to try and create measure but am having some problems.
    I can create a measure which shows me the total for the previous month.
    I have a pivot table which shows me expense per month, per master category and sub category.
    The measure when applied to the pivot shows me the total value per month on each of the master category and sub category rows.
    I have been looking into how to apply a filter to the calculate function whereby it filters the response in the context of the pivot table master and sub category rows but i cant quite grasp it. Do you have any ideas.

    Thanks

    Simon

  10. Simon Taylor
    March 2nd, 2011 at 13:29 | #10

    @Simon Taylor
    This is my attempt to obtain the last months data for the same element in the pivot table:-

    =CALCULATE(SUM(SourceData[Out]),PARALLELPERIOD(SourceData[Date],-1,MONTH),
    SourceData[Recurring] = IF(COUNTROWS(VALUES(SourceData[Recurring])) = 1,
    VALUES(SourceData[Recurring])
    ),
    SourceData[Master Category] = IF(COUNTROWS(VALUES(SourceData[Master Category])) = 1,
    VALUES(SourceData[Master Category])
    ),
    SourceData[CATEGORY] = IF(COUNTROWS(VALUES(SourceData[CATEGORY])) = 1,
    VALUES(SourceData[CATEGORY])
    )
    )

  11. Simon Taylor
    March 2nd, 2011 at 14:38 | #11

    @Simon Taylor
    In the end it worked out to be quite simple (isnt it always):-

    =CALCULATE( [Sum of Out] , DATEADD(DimDate[DateKey], -1, MONTH))

    And then :-

    =[Sum of Out] – [Sum PM]

    Your screencast got me started though!
    Cheers

  12. Kasper de Jonge
    March 2nd, 2011 at 17:30 | #12

    @Simon Taylor great :) If you have more questions let me know :)

  1. January 13th, 2010 at 20:38 | #1
  2. June 18th, 2010 at 15:20 | #2
  3. September 17th, 2010 at 17:01 | #3
  4. September 22nd, 2010 at 12:42 | #4