+ Reply to Thread
Results 1 to 2 of 2

DAX Filtering between dates with KEEPFILTER

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

    DAX Filtering between dates with KEEPFILTER

    Since originally posting I have also crosspostd at MR Excel ;

    Please Login or Register  to view this content.
    Hi,

    I've attached workbook with a p pivot which I'm trying to to in PBi,

    The formula I've used is

    Please Login or Register  to view this content.
    In Pbi I thought I would be able to use just KF even thought I'd not got it to work in power pivot;

    Please Login or Register  to view this content.
    the problem seems to be with the MAX(Pdate[Sdate]) part as if I use

    Please Login or Register  to view this content.
    This works, so I want to get it with the daets from Pdate?

    Finally is it possible to do this with DATESBETWEEN? again I just get the grand total .

    Richard.
    Attached Files Attached Files
    Last edited by Dicken; 02-04-2023 at 10:09 AM. Reason: Cross posted

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

    Re: DAX Filtering between dates with KEEPFILTER

    I don't know if I can answer my own question but here goes,

    If I refered directly to the dates in the disconected table contianing the two dates I wanted as lower and upper it did not work,
    but if I used them as a variable it did;
    so

    Please Login or Register  to view this content.
    Returned the grand total for each calendar date, but if I used them as variable it worked fine;

    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. [SOLVED] DAX Keepfilter
    By Dicken in forum Office 365
    Replies: 11
    Last Post: 01-05-2023, 09:57 AM
  2. DAX Two Keepfilter with OR function
    By Dicken in forum Office 365
    Replies: 0
    Last Post: 06-05-2022, 09:21 AM
  3. Filtering Dates (need all dates within the next 30 days)
    By debesh_b in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 09-22-2008, 10:27 PM
  4. [SOLVED] filtering dates
    By Peo Sjoblom in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 09-06-2005, 04:05 AM
  5. [SOLVED] filtering dates
    By [email protected] in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 12:05 AM
  6. filtering dates
    By [email protected] in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-05-2005, 11:05 PM
  7. [SOLVED] filtering dates
    By [email protected] in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-05-2005, 10:05 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