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

July 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! Learn more

Reply
Anonymous
Not applicable

Consecutive dates

I am having an issue with my report, I have a table with a reference and start date (the earliest date is the start date and the latest date is the end date), Reference numbers are duplicated with different start and end dates, the report is working for those have a consecutive date but for those having the gap between start and end date is not working correctly) I want to show them in a different row if there is a gap between the start and end dates.

 

My data.JPGCapture - Copy.JPG

1 ACCEPTED SOLUTION

Hi,

You may download my PBI file from here.  I have worked on the dates only.

Hope this helps.

Untitled.png


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

View solution in original post

5 REPLIES 5
Ashish_Mathur
Super User
Super User

Hi,

Share some data to work with (in a format the can be pasted in an MS Excel file) and show the expected result clearly.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/
Anonymous
Not applicable

Hi Ashish,

 

Data

IdM ARMS Ref Start D/T
562455AO-PR-22-00087111/10/2022 1:30:00 AM
562455AO-PR-22-00087113/10/2022 1:30:00 AM
548988AO-PR-22-00084110/12/2022 12:00:00 AM
548988AO-PR-22-00084110/12/2022 1:30:00 AM
548988AO-PR-22-00084111/12/2022 12:00:00 AM
548988AO-PR-22-00084112/12/2022 12:00:00 AM
542031AO-PR-22-00081324/10/2022 1:30:00 AM
542031AO-PR-22-00081325/10/2022 1:30:00 AM
542031AO-PR-22-00081326/10/2022 1:30:00 AM
542031AO-PR-22-00081327/10/2022 1:30:00 AM
542031AO-PR-22-00081328/10/2022 1:30:00 AM
541821AO-PR-22-00081231/08/2022 9:00:00 PM
467841AO-PR-22-00021907/11/2022 9:00:00 PM
467841AO-PR-22-00021908/11/2022 9:00:00 PM
467841AO-PR-22-00021909/11/2022 9:00:00 PM
467841AO-PR-22-00021910/11/2022 9:00:00 PM
455821AO-PR-22-00018110/12/2022 12:00:00 AM
455821AO-PR-22-00018110/12/2022 1:30:00 AM
455821AO-PR-22-00018111/12/2022 12:00:00 AM
455821AO-PR-22-00018112/12/2022 12:00:00 AM
429216AO-PR-22-00013226/11/2022 9:00:00 PM
429216AO-PR-22-00013227/11/2022 9:00:00 PM

 

 

Result

 

M ARMS Ref

Start Date       Start TimeFinish DateFinish Time
AO-PR-22-000132Sat, 26 Nov 2221:00Mon, 28 Nov 224:00
AO-PR-22-000181Sat, 10 Dec 221:30Mon, 12 Dec 223:00
AO-PR-22-000219
(4no)
Mon, 7 Nov 2221:00Fri, 11 Nov 224:00
AO-PR-22-000812Wed, 31 Aug 2221:00Thu, 1 Sep 224:00
AO-PR-22-000813Mon, 24 Oct 221:30Fri, 28 Oct 224:00
AO-PR-22-000841Sat, 10 Dec 221:30Mon, 12 Dec 223:00
AO-PR-22-000871Tue, 11 Oct 221:30Tue, 11 Oct 224:00
AO-PR-22-000871Thu, 13 Oct 221:30Thu, 13 Oct 224:00
     
     

Hi,

You may download my PBI file from here.  I have worked on the dates only.

Hope this helps.

Untitled.png


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/
Anonymous
Not applicable

Hi Ashish,

 

Thank you s much.

You are welcome.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

Helpful resources

Announcements
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

60 days of Data Days Carousel

Data Days 2026

Join Fabric Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.