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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

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
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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