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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
CSPedrao
New Member

Dax Query view - date format contains time

Hi,
I've created a Power automate flow that has a Dax query to extract data from Power BI, however the date is being exported with time.
I tried using the format on the Dax query but it's not working, can anyone advise how I can format the date to '"dd/mm/yyyy" so that it exports it without time?

Many thanks

 

DAX query 

DEFINE
    VAR __DS0Core =
        SUMMARIZE(
            'Missed_Bin_Attributes',
            'Missed_Bin_Attributes'[UPRN],
            'Missed_Bin_Attributes'[ServiceCode],
            'Missed_Bin_Attributes'[Status],
            'Missed_Bin_Attributes'[Date Requested],
            'Missed_Bin_Attributes'[Date Closed],
            'Missed_Bin_Attributes'[Name]
        )
EVALUATE
    __DS0Core
1 ACCEPTED SOLUTION
FreemanZ
Super User
Super User

hi @CSPedrao ,

 

try like:

DEFINE

    VAR __DS0Core =

SELECTCOLUMNS(

        SUMMARIZE(

            'Missed_Bin_Attributes'[Date Closed] ),

       "Date Closed", 

       FORMAT([Date Closed], "YYYY/MM/DD)

)

EVALUATE

    __DS0Core

View solution in original post

4 REPLIES 4
lbendlin
Super User
Super User

Why? Power Automate works on Datetime as well, as does Power BI.  "Date"  is just a format. not a data type.

@lbendlin I think that you have miss understood me but thank you for your comment anyway

 

FreemanZ
Super User
Super User

hi @CSPedrao ,

 

try like:

DEFINE

    VAR __DS0Core =

SELECTCOLUMNS(

        SUMMARIZE(

            'Missed_Bin_Attributes'[Date Closed] ),

       "Date Closed", 

       FORMAT([Date Closed], "YYYY/MM/DD)

)

EVALUATE

    __DS0Core

@FreemanZ Thanks for your advice, it worked 🙂

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.