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
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

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

 

 

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
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.