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

The Power BI DataViz World Championships are on! With four chances to enter, you could win a spot in the LIVE Grand Finale in Las Vegas. Show off your skills.

Reply
LisaB
Helper III
Helper III

DATEDIFF - cannot pick up dates

Hi everyone,

 

Trying to figure ut why this doesn't work but without any success, hope that you can help me.

 

I have a table containg different date values (and other values too). I want to calculate difference between created date and approval date but I cannot pick up the dates in the datediff formula.

 

Any ideas what I'm doing wrong?

 

Thanks.

 

Dates.png

1 ACCEPTED SOLUTION
v-shex-msft
Community Support
Community Support

HI @LisaB,

 

So you want to calendar filter can filter records which not really exist in table but in date range defined by two date column fields?

 

If this is a case, I'd like to suggest you create a calculated table to store expand detail data, then use this table as bridge to link calendar and original table so you can direct use calendar to filter date in range.

Spread revenue across period based on start and end date, slice and dase this using different dates...

 

Regards,
Xiaoxin Sheng

Community Support Team _ Xiaoxin
If this post helps, please consider accept as solution to help other members find it more quickly.

View solution in original post

2 REPLIES 2
v-shex-msft
Community Support
Community Support

HI @LisaB,

 

So you want to calendar filter can filter records which not really exist in table but in date range defined by two date column fields?

 

If this is a case, I'd like to suggest you create a calculated table to store expand detail data, then use this table as bridge to link calendar and original table so you can direct use calendar to filter date in range.

Spread revenue across period based on start and end date, slice and dase this using different dates...

 

Regards,
Xiaoxin Sheng

Community Support Team _ Xiaoxin
If this post helps, please consider accept as solution to help other members find it more quickly.

Hi @v-shex-msft,

 

Thank you for your reply. Seems like I tried to create a measure instead of a new column. It works when I created a new column.

 

Thanks!

 

Lisa

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!

FebPBI_Carousel

Power BI Monthly Update - February 2025

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

Feb2025 NL Carousel

Fabric Community Update - February 2025

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