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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
zyeet
Frequent Visitor

Getting number of days using a Data Slicer Picker does not give equal results

I am trying to get the number of days between two dates to use it in a calculation to estimate a truck's delivery capacity, that goes like this:  5000 gallons * 3 trips * No. of Days.

 

I have been successful so far in getting the number of days between two dates using a date slicer, but one of my rows is giving me 90,000 instead of 105,000 since that particular truck started delivery from Day 2:

 

zyeet_0-1694175180545.pngzyeet_1-1694175213661.png

 

The problem is that I want the capacity to be estimated between certain dates (exact number of days), and not just from the date the truck actually started delivery, for example a week - 7 days, or a month - 30/31 days. I understand that using the date column from my table means that it is looking at each truck individually, but I only want the days from a range irrespective of deliver or not as I am trying to automate this report with daily data updates.

 

Below is an excerpt from the table and the measure for the Delivery Capacity: 

zyeet_2-1694175667896.png

 

zyeet_3-1694175698281.png

 

1 REPLY 1
lbendlin
Super User
Super User

Please provide sample data (with sensitive information removed) that covers your issue or question completely, in a usable format (not as a screenshot). Leave out anything not related to the issue.
https://community.fabric.microsoft.com/t5/Community-Blog/How-to-provide-sample-data-in-the-Power-BI-...
Please show the expected outcome based on the sample data you provided.

https://community.fabric.microsoft.com/t5/Desktop/How-to-Get-Your-Question-Answered-Quickly/m-p/1447...

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 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