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
qwertzuiop
Advocate III
Advocate III

create a measure that count sum of same time

Dear PowerBI Community

 

First of all: Good luck for 2020!

 

I have the following question:

I want to create a measure that returns me the number of times the time 01:00 occurs in the column

 

For example, the measure for this table should return the number "4".

Think its not easy because its not an interger to check.

So the following expression does not work: 

measure = COUNTX(FILTER('table';[timeOfCreation]=01:00))

 

timeOfCreation
01:00
02:00
03:00
01:00
02:00
01:00
03:00
01:00

 

Thank you so much for your help.

 

Cheers!

qwertzuiop

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @qwertzuiop 

 

Create measure,

 

Measure = CALCULATE(COUNT('Time'[Column]),FILTER('Time','Time'[Column]="01:00"))
 
Thanks & regards,
Pravin Wattamwar
www.linkedin.com/in/pravin-p-wattamwar
 
If I resolve your problem Mark it as a solution and give kudos.

View solution in original post

2 REPLIES 2
Anonymous
Not applicable

Hi @qwertzuiop 

 

Create measure,

 

Measure = CALCULATE(COUNT('Time'[Column]),FILTER('Time','Time'[Column]="01:00"))
 
Thanks & regards,
Pravin Wattamwar
www.linkedin.com/in/pravin-p-wattamwar
 
If I resolve your problem Mark it as a solution and give kudos.
Anonymous
Not applicable

Alternative,
 
Measure 2 = COUNTAX(FILTER('Time','Time'[Column]="01:00"),'Time'[Column])
 
Thanks & regards,
Pravin Wattamwar
www.linkedin.com/in/pravin-p-wattamwar

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.