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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
Andy_W_UK
Resolver I
Resolver I

DAX query variable error in a flow

Hello everyone,

I am a novice to DAX so hope someone can point me in the right direction please.

I have a flow which queries a dataset and then goes on to send the result as an email attachment.

I copied the query from Performance analyzer in desktop - it queries a table using a date parameter of "today".

In the flow I found that I need to change the DAX query to set a new variable of today's date and then use this rather than a specific date but the format I have tried returns a format error so I would really appreciate it if someone could help me out.

 

// DAX Query
DEFINE
VAR _TodaysDate = DateTimeZone.UtcNow()

 

VAR __DS0FilterTable4 =
FILTER(
KEEPFILTERS(VALUES('SDT Clarity Tasks'[ETD])),
AND(
'SDT Clarity Tasks'[ETD] = '_TodaysDate')

 

Many thanks !

Andy

 

2 ACCEPTED SOLUTIONS
Shaurya
Memorable Member
Memorable Member

Hi @Andy_W_UK,

 

Try this:

 

DEFINE
    VAR _TodaysDate = TODAY()

VAR __DS0FilterTable4 =
    FILTER(
        KEEPFILTERS(VALUES('SDT Clarity Tasks'[ETD])),
        'SDT Clarity Tasks'[ETD] = _TodaysDate
    )

 

Mark this post as a solution if that works for you!
Check out this blog of mine: How to Export Telemetry Data from Azure IoT Central into Power BI  

View solution in original post

Thanks for your help !

View solution in original post

2 REPLIES 2
Shaurya
Memorable Member
Memorable Member

Hi @Andy_W_UK,

 

Try this:

 

DEFINE
    VAR _TodaysDate = TODAY()

VAR __DS0FilterTable4 =
    FILTER(
        KEEPFILTERS(VALUES('SDT Clarity Tasks'[ETD])),
        'SDT Clarity Tasks'[ETD] = _TodaysDate
    )

 

Mark this post as a solution if that works for you!
Check out this blog of mine: How to Export Telemetry Data from Azure IoT Central into Power BI  

Thanks for your help !

Helpful resources

Announcements
July PBI25 Carousel

Power BI Monthly Update - July 2025

Check out the July 2025 Power BI update to learn about new features.

Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 community update carousel

Fabric Community Update - June 2025

Find out what's new and trending in the Fabric community.