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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

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
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

September Power BI Update Carousel

Power BI Monthly Update - September 2025

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors
Top Kudoed Authors