Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Vote for your favorite vizzies from the Power BI Dataviz World Championship submissions. Vote now!

Reply
Anonymous
Not applicable

DAX Studio Using Todays Date as a field in a query

Hi, I want to use todays date as a field in a DAX Studio Query. But no matter how I use it (so far), I've been unable to successfully implement it. Tried so many things and I'm betting the solution is so simple I'll be saying to myself "why didn't i think of that"

Here's my query 

EVALUATE
SUMMARIZECOLUMNS(
    RallyStories[Accepted Date],
    RallyStories[Creation Date],
    RallyStories[Last Updated Date],
    RallyStories[In Progress Date],
    RallyStories[Blocked],
    RallyStories[Blocked Reason],
    RallyStories[Delivery Stream],
    RallyStories[Feature ID],
    RallyStories[Feature Name],
    RallyStories[Feature Project],
    RallyStories[Flow State],
    RallyStories[Flow State Changed Date],
    RallyStories[Flow State UUID],
    RallyStories[Formatted ID],
    RallyStories[Iteration],
    RallyStories[Name],
    RallyStories[Owner],
    RallyStories[Plan Estimate],
    RallyStories[Portfolio],
    RallyStories[Ready],
    RallyStories[Release],
    RallyStories[Release Train],
    RallyStories[Schedule State],
    RallyStories[Team],
    RallyStories[Team UUID],
    RallyStories[UUID],
KEEPFILTERS(FILTER(ALL(RallyStories[Last Updated Date]), RallyStories[Last Updated Date] >= (TODAY()-1)))
    TODAY() as 'CurrentDay'
)
ORDER BY 
    RallyStories[Accepted Date] ASC
/* END QUERY BUILDER */

 

1 REPLY 1
MFelix
Super User
Super User

Hi @Anonymous ,

 

To what I can read from your code you want to return the table with only todays dates correct? 

 

You are using a KEEPFILTER this vchanges the filter context and you are using it has part of your table try to change it to the following syntax:

FILTER (
    SUMMARIZECOLUMNS (
        RallyStories[Accepted Date],
        RallyStories[Creation Date],
        RallyStories[Last Updated Date],
        RallyStories[In Progress Date],
        RallyStories[Blocked],
        RallyStories[Blocked Reason],
        RallyStories[Delivery Stream],
        RallyStories[Feature ID],
        RallyStories[Feature Name],
        RallyStories[Feature Project],
        RallyStories[Flow State],
        RallyStories[Flow State Changed Date],
        RallyStories[Flow State UUID],
        RallyStories[Formatted ID],
        RallyStories[Iteration],
        RallyStories[Name],
        RallyStories[Owner],
        RallyStories[Plan Estimate],
        RallyStories[Portfolio],
        RallyStories[Ready],
        RallyStories[Release],
        RallyStories[Release Train],
        RallyStories[Schedule State],
        RallyStories[Team],
        RallyStories[Team UUID],
        RallyStories[UUID]
    ),
    KEEPFILTERS (
        FILTER (
            ALL ( RallyStories[Last Updated Date] ),
            RallyStories[Last Updated Date]
                >= ( TODAY () - 1 )
        )
    )
)
ORDER BY 
    RallyStories[Accepted Date] ASC

Regards

Miguel Félix


Did I answer your question? Mark my post as a solution!

Proud to be a Super User!

Check out my blog: Power BI em Português





Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

Vote for your favorite vizzies from the Power BI World Championship submissions!

Sticker Challenge 2026 Carousel

Join our Community Sticker Challenge 2026

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!

January Power BI Update Carousel

Power BI Monthly Update - January 2026

Check out the January 2026 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.