cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted

Today funtion

Hi

 

Can someone please tell me what the today part do in this colum formula: 

 

On time order =
IF (
    'Orders'[CANTIDADFACTURA] <> BLANK (),
    IF (
        'Orders'[CANTIDAD PEDIDO] <= 'Orders'[CANTIDADFACTURA],
        "Sí",
        "No"
    ),
    IF (
        'Orders'[VALOR PEDIDO] = 0,
        BLANK (),
        IF (
            'Orders'[FECHAHORAENTREGA] TODAY (),
            "No",
            BLANK ()
        )
    )
)

 

 

The colums: 

[CANTIDADFACTURA] : Quantity of billed itmes

[CANTIDAD PEDIDO]: Quantity of order itmes

[VALOR PEDIDO]: Quantity or order items in dollars

[FECHAHORAENTREGA]: Date and hour of delivery

 

Thanks!

1 ACCEPTED SOLUTION

Accepted Solutions
Microsoft Phil_Seamark
Microsoft

Re: Today funtion

Hi @christianyepez2

 

The DAX function TODAY, simply returns the current date.  For example, this might be the 28th of May, 2018.  This is dynamic so tomorrow it will be the 29th May, 2018.

 

In your calculation, the IF function is just testing each value in your 'Orders'[FECHAHORAENTREGA] column to see if it happens to be in the past, or in the future.


To learn more about DAX visit : aka.ms/practicalDAX

Proud to be a Datanaut!

View solution in original post

1 REPLY 1
Microsoft Phil_Seamark
Microsoft

Re: Today funtion

Hi @christianyepez2

 

The DAX function TODAY, simply returns the current date.  For example, this might be the 28th of May, 2018.  This is dynamic so tomorrow it will be the 29th May, 2018.

 

In your calculation, the IF function is just testing each value in your 'Orders'[FECHAHORAENTREGA] column to see if it happens to be in the past, or in the future.


To learn more about DAX visit : aka.ms/practicalDAX

Proud to be a Datanaut!

View solution in original post

Helpful resources

Announcements
Exclusive LIVE Community Event #3 – Ask Arun Anything

Exclusive LIVE Community Event #3 – Ask Arun Anything

Join us in the third Triple A event!

Meet the 2020 Season 1 Power BI Super Users!

Meet the 2020 Season 1 Power BI Super Users!

It’s the start of a new Super User season! Learn all about the new Super Users and brand-new tiered recognition system.

Super User Challenge: Can You Solve These?

Super User Challenge: Can You Solve These?

We're celebrating the start of the New Super User season with our first ever Super User 'Can You Solve These?' challenge.

Power BI Desktop Update - February 2020

Power BI Desktop Update - February 2020

We are super excited for our update this month, as we are releasing two of our top community requests!

Power Platform Online Conference

Power Platform Online Conference

Join us for the first ever Power Platform Online Conference!

Top Solution Authors