cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
JiriS
Helper I
Helper I

Group people by date range and count duration

I need to create visualization but I do not know how.

 

My data Source:

NameDate
George01.05.2020
George02.05.2020
George 03.05.2020
George 05.05.2020
George 06.05.2020
John01.05.2020
John03.05.2020
John04.05.2020

 

The visualization should look:

NameStart dateEnd dateDuration
George01.05.202003.05.20203 days
George05.05.202006.05.20202 days
John01.05.202001.05.20201 day
John03.05.202004.05.20202 days

I have tried some ideas but nothing worked. Please, can you help me? Thank you for you ideas!

George

5 REPLIES 5
amitchandak
Super User
Super User

@JiriS this a continuous streak problem

See if this can help you so solve it.

https://community.powerbi.com/t5/Desktop/Build-measure-or-column-to-show-a-streak-by-consecutive-dat...

 

I have done the same one a couple of days back with some data, which I can not share. But need to do it again for your data if this does not work

Did I answer your question? Mark my post as a solution! Appreciate your Kudos!! !!
Dashboard of My Blogs !! Connect on Linkedin
Want To Learn Power BI
Learn Power BI Beginners !! Advance Power BI Concepts !! Power BI For Tableau User !! Learn Power BI in Hindi !!
Proud to be a Super User!

Hi, 

 

thank you for your ides. It probably works, but I need to check it anymore.

 

Thank you!

@JiriS , In between I created on too. See if this can also help. Attached after signature

 

 

Did I answer your question? Mark my post as a solution! Appreciate your Kudos!! !!
Dashboard of My Blogs !! Connect on Linkedin
Want To Learn Power BI
Learn Power BI Beginners !! Advance Power BI Concepts !! Power BI For Tableau User !! Learn Power BI in Hindi !!
Proud to be a Super User!
VasTg
Memorable Member
Memorable Member

@JiriS 

 

How are you identifying a rows for start or end date? Your example is incomplete. 

Connect on LinkedIn

My Start and End date is uninterrupted series of days.

It means that if some day there is a gap, then the day before is a end date.

Next date from datasource is next Start date.

Helpful resources

Announcements
2022 Release Wave 1 760x460.png

2022 Release Wave 1 Plan

Power Platform release plan for the 2022 release wave 1 describes all new features releasing from April 2022 through September 2022.

Power BI December 2021 Update_carousel 768x460.jpg

Check it Out!

Click here to read more about the December 2021 Updates!

Jan 2022 Dev Camp 768x460 copy.png

Power BI Dev Camp- January 27th, 2022

Mark your calendars and join us for our next Power BI Dev Camp!

Top Solution Authors