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
Ley
Helper I
Helper I

Analyze the hourly variation of cases belonging to different groups

Hi,

I want to analize hourly increase of cases (tickets) belonging to different clusters or groups. I need some ideas about what DAX function could I use in order to calculate hourly or daily variation of tickets for different clusters.

Also, It would be helpful any idea about how could show this data to easily detect when the number of cases belonging to a cluster increase drastically. 

 

Thanks

7 REPLIES 7
v-juanli-msft
Community Support
Community Support

Hi @Ley 

Is this problem sloved? 

If it is sloved, could you kindly accept it as a solution to close this case and help the other members find it more quickly?

If not, please feel free to let me know.

 

Best Regards

Maggie

v-juanli-msft
Community Support
Community Support

Hi @Ley 

With this information I need to calculate a function to determine the porcentaje of increase or decrease in the number of tickets for each group. I would need somthing similar to this "for the cluster 7 the increase of tickets number is 20%".

Please provide day or time window period so i can give a proper answer.

 

"for the cluster 7 the increase of tickets number is 20%"-> 

as i know, this can be achieved by Q&A visual, please complete this question with a certain date or time filter,

for example, for the cluster 7 the increase of tickets  number in 2020/1/11  is ****.

 

Best Regards

Maggie

v-juanli-msft
Community Support
Community Support

Hi @Ley 

Assume you have tables as below:

Capture9.JPG

 

1.

Add a new table

datetime table = CROSSJOIN(CALENDARAUTO(),ADDCOLUMNS(GENERATESERIES(0,23,1),"time",[Value]&":00:00"))

add columns in this table

date/time = [Date]&" "&[time]

convert this column into "Date/Time" type.

 

2. create columns in your table

date_hour = [date/time].[Date]&" "&HOUR([date/time])&":00:00"

convert this column into "date/time" type

 

3. create a relationship between two tables above

Capture7.JPG

 

4. then you can create a measure and use line chart or waterfall chart

DISCOUNT = DISTINCTCOUNT('Table 3'[ticket id])

Capture8.JPG

Best Regards
Maggie
Community Support Team _ Maggie Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Hi Maggie,

Thanks for your reply. Is there any way to compare all clusters at once? I mean, your solution is useful if I have a few clusters, but If I would have more than 100 clusters and I can not filter one by one, is there an alternative (table) to show variation for all?.

Hi @Ley 

I can count the tickets per day and per day&&hour for every cluster as displayed in a matrix below:

Capture7.JPGCapture8.JPG

calculate the incremental pecentage per day for every cluster

Capture9.JPG

Best Regards
Maggie
Community Support Team _ Maggie Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

amitchandak
Super User
Super User

@Ley ,

Can you share sample data and sample output in a table format?

 

You can create an hourly bucket and use that in measure find the last hourly bucket, Depend on data

Hi 

I attach more information:

1. I have created and linked a calendar table

2. An example of ticket information is the following:

 

Ticketclusterdate
A022101/01/2010 13:30
A023101/01/2010 13:30
A024401/01/2010 13:30
A025404/01/2010 13:30
A026605/01/2010 13:30
A027706/01/2010 13:30
A028801/01/2010 13:30
A029908/01/2010 13:30
A030201/01/2010 13:30
A031601/01/2010 13:30
A032711/01/2010 13:30
A033701/01/2010 13:30
A034701/01/2010 13:30
A035701/01/2010 13:30

 

With this information I need to calculate a function to determine the porcentaje of increase or decrease in the number of tickets for each group. I would need somthing similar to this "for the cluster 7 the increase of tickets number is 20%".

I need hourly variation as weel as variation between days.

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.