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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
SalSal
Frequent Visitor

DATEADD returning Blank values

Hi,

I'm trying to get the result of the DateAdd into number of months , for some of the records its working fine but for some records its returning blank. What I'm doing wrong here?

DATEADD(Table1[Date Completed].[Date], Table2[Test], MONTH)

 

Date Completed = '8/24/2020 10:00:00 AM'

Test = 24

 

Thanks,

-Sal

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

Hi  @SalSal ,

In order to give you a suitable solution, could you please provide some sample data in the table Table1 and Table2(exclude sensitive data) with Text format and your expected result with backend logic and special examples? Please also share the relationship info if there is any relationship exist between these two tables. It is better if you can share a simplified pbix file. You can refer the following link to upload the file to the community. Thank you.

How to upload PBI in Community

In addition, The following links describes some application scenarios of the DATEADD function, you can refer them.

Using The DATEADD Function For Effective Time Related Insights - Power BI

Issue with DATEADD function in DAX

yingyinr_0-1655084783844.png

Power BI Time Intelligence — DATEADD/SAMEPERIODLASTYEAR/PARALLELPERIOD

yingyinr_2-1655084908381.png

yingyinr_3-1655084928168.png

Best Regards

Community Support Team _ Rena
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

1 REPLY 1
v-yiruan-msft
Community Support
Community Support

Hi  @SalSal ,

In order to give you a suitable solution, could you please provide some sample data in the table Table1 and Table2(exclude sensitive data) with Text format and your expected result with backend logic and special examples? Please also share the relationship info if there is any relationship exist between these two tables. It is better if you can share a simplified pbix file. You can refer the following link to upload the file to the community. Thank you.

How to upload PBI in Community

In addition, The following links describes some application scenarios of the DATEADD function, you can refer them.

Using The DATEADD Function For Effective Time Related Insights - Power BI

Issue with DATEADD function in DAX

yingyinr_0-1655084783844.png

Power BI Time Intelligence — DATEADD/SAMEPERIODLASTYEAR/PARALLELPERIOD

yingyinr_2-1655084908381.png

yingyinr_3-1655084928168.png

Best Regards

Community Support Team _ Rena
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

Top Solution Authors