+ Reply to Thread
Results 1 to 2 of 2

DAX Filter fact table by Dates on dim table

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

    DAX Filter fact table by Dates on dim table

    Hi,
    I have a fact table with dates and sales, and then a dim table of dates a start and end between which I'd like to calculate the total sales;

    so in excel ;

    Please Login or Register  to view this content.


    How can I do this with a DAX formula, I have a Calendar table linked to sales and then the date parameter's ,

    Do I need to link both start and end date and use 'USERELATIONSHIP', any help welcome or pointers to source of more information / tutorial etc.

    Workbook attached .

    Richard
    Attached Files Attached Files

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

    Re: DAX Filter fact table by Dates on dim table

    I have since come up with this, but if anyone has better suggestions please let me know;

    Please Login or Register  to view this content.

    I first overcoplicated things by using relatedtabe, forgetting that calculate see entire data model so had this ;

    Please Login or Register  to view this content.
    Richard

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Power Pivot: Filtering 2 fact tables based on Lookup table
    By Willem2904 in forum Excel Charting & Pivots
    Replies: 2
    Last Post: 12-12-2019, 03:29 PM
  2. Replies: 4
    Last Post: 06-20-2019, 03:04 PM
  3. [SOLVED] VBA code to filter pivot table by rows containing dates for dates < 60 months old
    By BrokenDome in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-19-2019, 01:28 PM
  4. Replies: 1
    Last Post: 06-08-2019, 08:48 PM
  5. Pivot table - Filter by dates
    By HoyaBB in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 04-13-2017, 07:27 AM
  6. Filter recognizes dates, but Pivot Table filter does not
    By maw230 in forum Excel Charting & Pivots
    Replies: 2
    Last Post: 09-07-2016, 04:18 PM
  7. Select Multiple Dates In Report Filter Pivot Table But Dates Are Not Static
    By biasedobserver in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-06-2014, 03:38 PM

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