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

Count based on days

Hello everyone,

 

I'm trying to count the number of days on a job for a specific client. In the following table for example the number of days is 6 total. Each day has multiple tickets . Any idea of how to acheive this? I'm happy with a "card" for visualization. 

 

 

YearMonthDayTicketNumberBusinessPartnerName
2019August138775Encana Corporation
2019August138776Encana Corporation
2019August139547Encana Corporation
2019August139548Encana Corporation
2019August238797Encana Corporation
2019August238798Encana Corporation
2019August239574Encana Corporation
2019August239575Encana Corporation
2019August338829Encana Corporation
2019August338830Encana Corporation
2019August339600Encana Corporation
2019August339601Encana Corporation
2019August438875Encana Corporation
2019August438876Encana Corporation
2019August439630Encana Corporation
2019August439631Encana Corporation
2019August538903Encana Corporation
2019August538929Encana Corporation
2019August539667Encana Corporation
2019August539668Encana Corporation
2019August639681Encana Corporation
2019August639703Encana Corporation
2019August639704Encana Corporation
2019August639713Encana Corporation
2019August639714Encana Corporation
1 ACCEPTED SOLUTION
Anonymous
Not applicable

HI @bouyazbekj 

You can try the following measure:

_Count_M =
VAR _TEMP =
    GROUPBY ( T27, T27[Day], T27[Month], T27[Year] )
VAR _COUNT =    
     COUNTROWS ( _TEMP )
RETURN
    _COUNT

2019-09-17 09_20_04-papercut - Remote Desktop Connection.png

View solution in original post

3 REPLIES 3
pethali84
Frequent Visitor

Hi, I believe this can be achieved by using maximum days. 

 

 

Capture.PNG

Anonymous
Not applicable

HI @bouyazbekj 

You can try the following measure:

_Count_M =
VAR _TEMP =
    GROUPBY ( T27, T27[Day], T27[Month], T27[Year] )
VAR _COUNT =    
     COUNTROWS ( _TEMP )
RETURN
    _COUNT

2019-09-17 09_20_04-papercut - Remote Desktop Connection.png

Hello @Anonymous  

Thanks a lot!!! 

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.