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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Anonymous
Not applicable

I am able to use dateadd function but not the datediff function.

When using the dateadd function, I am able to select the column names from the drop down list. But when I am using the datediff fucntion, I am not seeing the dropdown list and am not able to select the column names. Please advise. Thank you. 

(Here are the screenshots for your reference.)

agatheeben_0-1620972536095.pngagatheeben_1-1620972550818.png

 

1 ACCEPTED SOLUTION
Jihwan_Kim
Super User
Super User

Hi, @Anonymous 

I assume you want to create a measure, not a column.

Please try to write something like below.

 

DATEDIFF ( MAX(
DATEDIFF ( MIN(

DATEDIFF ( SELECTEDVALUE(

...

 

Hi, My name is Jihwan Kim.

 

If this post helps, then please consider accept it as the solution to help other members find it faster, and give a big thumbs up.

 

Linkedin: linkedin.com/in/jihwankim1975/

Twitter: twitter.com/Jihwan_JHKIM

If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.


Go to My LinkedIn Page


View solution in original post

2 REPLIES 2
Jihwan_Kim
Super User
Super User

Hi, @Anonymous 

I assume you want to create a measure, not a column.

Please try to write something like below.

 

DATEDIFF ( MAX(
DATEDIFF ( MIN(

DATEDIFF ( SELECTEDVALUE(

...

 

Hi, My name is Jihwan Kim.

 

If this post helps, then please consider accept it as the solution to help other members find it faster, and give a big thumbs up.

 

Linkedin: linkedin.com/in/jihwankim1975/

Twitter: twitter.com/Jihwan_JHKIM

If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.


Go to My LinkedIn Page


Anonymous
Not applicable

Hi Jihwan, 

 

Thank you for your reply. I have managed to work around it by using the average function. But I have also tried your "DATEDIFF ( SELECTEDVALUE( " suggestion and it works as well. Thank you!

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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