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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

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
Anonymous
Not applicable

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

View solution in original post

3 REPLIES 3
mwegener
Most Valuable Professional
Most Valuable Professional

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 - Power BI Tutorials


Anonymous
Not applicable

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

mwegener
Most Valuable Professional
Most Valuable Professional

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 - Power BI Tutorials


Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.