cancel
Showing results for 
Search instead for 
Did you mean: 

Fabric is Generally Available. Browse Fabric Presentations. Work towards your Fabric certification with the Cloud Skills Challenge.

Reply
emilyhenderson
New Member

Count Of Days in Summary Table from multiple data sets

Hello,

I am trying to do a count of days (preferrably network days). I have multiple data sets. Each data set has a date that the order went to a different status. I have created a summary table that shows the dates by order number and am needing to do a count of days between the dates. PowerBi.png

4 REPLIES 4
BobBI
Resolver III
Resolver III

 

Hi emily,

 

can you tell me which dates to be used to calculate number of days .

1. Are you trying to calculate number of days between 'Date Assigned to Eng' and Date WO comp by End' for example ?

 

To calculate number of days between any 2 dates , you can use DATEDIFF Dax expression

 

DATEDIFF( StartDate,EndDate,<Interval>)

Interval can be one of the following

   SECOND
- MINUTE
- HOUR
- DAY
- WEEK
- MONTH
- QUARTER
- YEAR

 

hope this would help , else please let me know are extactly you like to achieve.

 

Thanks,

Sukhi

Yes. I am trying to do for example the count of days between "Date Assigned to Eng" and "Date Approved in MX". The dates come from different data sets and the table pictured is a visulization table I created.

Hi @emilyhenderson , 

I am not clear about your requirement, if possible could you please inform me more detailed information(such as your expected output and your sample data)? Then I will help you more correctly.

Please do mask sensitive data before uploading.

Thanks for your understanding and support.
Best Regards,
Zoe Zhi

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

 

Hi Zoe,

 

I am including some screen shots in hopes that it helps. I am trying to make a summary table from 9 data sets.

6 of those sets have dates that an order went to a specific status.

I need to add a column with a count of days between 'Needs Design Date' and 'Date Assigned to Engineer'. Those 2 dates come from different data sets ('Needs Design Date' and 'WDesign Dates'). Does that help? In excel I would add a column and use NETWORKDAYS function.

Eng Report1.png 

 

Eng. Relationship table.JPG

 

Helpful resources

Announcements
PBI November 2023 Update Carousel

Power BI Monthly Update - November 2023

Check out the November 2023 Power BI update to learn about new features.

Community News

Fabric Community News unified experience

Read the latest Fabric Community announcements, including updates on Power BI, Synapse, Data Factory and Data Activator.

Dashboard in a day with date

Exclusive opportunity for Women!

Join us for a free, hands-on Microsoft workshop led by women trainers for women where you will learn how to build a Dashboard in a Day!

Power BI Fabric Summit Carousel

The largest Power BI and Fabric virtual conference

130+ sessions, 130+ speakers, Product managers, MVPs, and experts. All about Power BI and Fabric. Attend online or watch the recordings.

Top Solution Authors
Top Kudoed Authors