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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends September 15. Request your voucher.

Reply
Yosinator
Frequent Visitor

Calculating the number of days between two dates as a new column

It seems I am just getting another date as the output. 

Any ideas? 

Yosinator_0-1668700911639.png

 

1 ACCEPTED SOLUTION
mariussve1
Super User
Super User

Hi,

 

Hi,


If you change the data type on your new column to Whole number (int) it should show the number of days betweeen your column 🙂

 

Br

Marius


Br
Marius
BI Fabrikken
www.bifabrikken.no

View solution in original post

2 REPLIES 2

Click on new column

Add formula : Ex: = Table.AddColumn(#"Changed Type", "Custom", each [to Date] -[#"From Date "])

 

Satya_Bhamidipa_0-1668702536481.png

 

 

Change new column type to whole number

mariussve1
Super User
Super User

Hi,

 

Hi,


If you change the data type on your new column to Whole number (int) it should show the number of days betweeen your column 🙂

 

Br

Marius


Br
Marius
BI Fabrikken
www.bifabrikken.no

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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