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

To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.

Reply
Emil_ansarijose
New Member

Splitting the time attribute in increments of 15min until the specific time range is achieved in BI

Hello Community,

I'm currently not able to increment the time attribute in the multiples of 15 min.

To explain the scenario briefly:

Existing data set:

 

AppointmentIDStartDateEndDateStartTimeEndTime
116-Aug-2216-Aug-2212:00:0014:00:00
220-Jan-2221-Jan-2223:00:0000:15:00

 

Required data set:

 

AppointmentIDStartDateEndDateStartTimeEndTime
116-Aug-2216-Aug-2212:00:0012:15:00
116-Aug-2216-Aug-2212:15:0012:30:00
116-Aug-2216-Aug-2212:30:0012:45:00
116-Aug-2216-Aug-2212:45:0013:00:00
116-Aug-2216-Aug-2213:00:0013:15:00
116-Aug-2216-Aug-2213:15:0013:30:00
116-Aug-2216-Aug-2213:30:0013:45:00
116-Aug-2216-Aug-2213:45:0014:00:00
220-Jan-2220-Jan-2223:00:0023:15:00
220-Jan-2220-Jan-2223:15:0023:30:00
220-Jan-2220-Jan-2223:30:0023:45:00
220-Jan-2221-Jan-2223:45:0000:00:00
220-Jan-2221-Jan-2200:00:0000:15:00

 

How do I get this done in powerBI using DAX or transformation?

1 ACCEPTED SOLUTION
tamerj1
Super User
Super User

Hi @Emil_ansarijose 

For dax solution plesae refer to attached file

1.png

Table 2 = 
SELECTCOLUMNS ( 
    GENERATE ( 
        'Table',
        GENERATESERIES ( 'Table'[StartTime], 'Table'[EndTime] - TIME ( 0, 15, 0 ), TIME ( 0, 15, 0 ) )
    ),
    "AppointmentID", [AppointmentID],
    "StartDate", [StartDate],
    "EndDate", [EndDate],
    "StartTime", [Value],
    "EndTime", [Value] + TIME ( 0, 15, 0 )
)

View solution in original post

2 REPLIES 2
tamerj1
Super User
Super User

Hi @Emil_ansarijose 

For dax solution plesae refer to attached file

1.png

Table 2 = 
SELECTCOLUMNS ( 
    GENERATE ( 
        'Table',
        GENERATESERIES ( 'Table'[StartTime], 'Table'[EndTime] - TIME ( 0, 15, 0 ), TIME ( 0, 15, 0 ) )
    ),
    "AppointmentID", [AppointmentID],
    "StartDate", [StartDate],
    "EndDate", [EndDate],
    "StartTime", [Value],
    "EndTime", [Value] + TIME ( 0, 15, 0 )
)

Thank you works good!

Helpful resources

Announcements
September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

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