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
ayoubb
Helper IV
Helper IV

data per time slot

Hello, 

 

Please i want to change this DAX below, in order to show me data every 30min instead of every 1hours

 

i want to see the graph below with; 

 

00 - 00:30 

00:30 - 01

01 - 01:30 .................. etc

 

 

 

 

Genesys par tranche horaire = VAR timeslot = FORMAT(HOUR('SEPHORA'[Call start time]),"00")&"h-"&FORMAT(HOUR('SEPHORA'[Call start time])+1,"00")&"h" return if(HOUR('SEPHORA'[Call start time])>=00 && HOUR('SEPHORA'[Call start time])<=23, timeslot,"")
 
TIME SLOT.JPG
1 ACCEPTED SOLUTION

Hello amitchandak,

 

thank ou for your reply, 

 

thus, is there any way jute to change this column below, insteady of showing time slot in hours like this 00-01, i want to to be in half hours 00-00:30 and so on

 

Genesys par tranche horaire = VAR timeslot = FORMAT(HOUR('SEPHORA'[Call start time]),"00")&"h-"&FORMAT(HOUR('SEPHORA'[Call start time])+1,"00")&"h" return if(HOUR('SEPHORA'[Call start time])>=00 && HOUR('SEPHORA'[Call start time])<=23, timeslot,"")

 

ps: what you asked me to do is very complicated for me

View solution in original post

3 REPLIES 3
amitchandak
Super User
Super User

@ayoubb , You can create a time table and there you can create a 30 Min bucket and join it with your time

In case you date and time together have time column

 

Time = [datetime].time

 

https://radacad.com/script-for-creating-time-table-in-power-bi-with-hours-minutes-and-seconds-bucket...

https://kohera.be/blog/power-bi/how-to-create-a-time-table-in-power-bi-in-a-few-simple-steps/

Hello amitchandak,

 

thank ou for your reply, 

 

thus, is there any way jute to change this column below, insteady of showing time slot in hours like this 00-01, i want to to be in half hours 00-00:30 and so on

 

Genesys par tranche horaire = VAR timeslot = FORMAT(HOUR('SEPHORA'[Call start time]),"00")&"h-"&FORMAT(HOUR('SEPHORA'[Call start time])+1,"00")&"h" return if(HOUR('SEPHORA'[Call start time])>=00 && HOUR('SEPHORA'[Call start time])<=23, timeslot,"")

 

ps: what you asked me to do is very complicated for me

Please i need to create Heatmap (using matrix visual) to show all timeslots (from 00-00:30....,23:30 - 00) for 24 hours (with 30min gaps), i need to calculte how many calls we have received in which time slots.

 

this the date base: 

 

base.JPG

 

Thank you for your help

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.