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

Count instance with same time

I'm looking for help getting a count of instances where the timestamp is the same so that I can chart on a line graph against time of day.  

Throw Count Table:

IDTOD(RND)
2662688:30:00 AM
2662688:30:00 AM
2662689:00:00 AM

 

Obviously the table is much bigger and has more than one ID on it but I'm getting total numbers in the graph for the distinct id.  I'm hoping to get a answer if based on the above that 266268 threw twice at 8:30AM and once at 9:00AM.  Thanks!

1 ACCEPTED SOLUTION
v-shex-msft
Community Support
Community Support

HI @jason5703 ,

You can use the following measures to calculate instance count based on current timestamp group, then you can create a line chart with timestamp field as axis, measure on value fields.

measure =
CALCULATE ( COUNT ( Table[ID] ), VALUES ( Table[TOD(RND)] ) )

Regards,

Xiaoxin Sheng

Community Support Team _ Xiaoxin
If this post helps, please consider accept as solution to help other members find it more quickly.

View solution in original post

3 REPLIES 3

Hi @jason5703 ,

 

did you solve your problem?


If I answered your question, please mark my post as solution, this will also help others.

Please give Kudos for support.

Did I answer your question?
Please mark my post as solution, this will also help others.
Please give Kudos for support.

Marcus Wegener works as Full Stack Power BI Engineer at BI or DIE.
His mission is clear: "Get the most out of data, with Power BI."
twitter - LinkedIn - YouTube - website - podcast


v-shex-msft
Community Support
Community Support

HI @jason5703 ,

You can use the following measures to calculate instance count based on current timestamp group, then you can create a line chart with timestamp field as axis, measure on value fields.

measure =
CALCULATE ( COUNT ( Table[ID] ), VALUES ( Table[TOD(RND)] ) )

Regards,

Xiaoxin Sheng

Community Support Team _ Xiaoxin
If this post helps, please consider accept as solution to help other members find it more quickly.

Hi @jason5703 ,

 

create a calculated column an concatenate this two columns.

 

ID_TOD(RND) = CONCATENATE('Table'[ID];'Table'[TOD(RND)])
 
If I answered your question, please mark my post as solution, this will also help others.
Please give Kudos for support.
Did I answer your question?
Please mark my post as solution, this will also help others.
Please give Kudos for support.

Marcus Wegener works as Full Stack Power BI Engineer at BI or DIE.
His mission is clear: "Get the most out of data, with Power BI."
twitter - LinkedIn - YouTube - website - podcast


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.