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

A new Data Days event is coming soon! This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. Don't miss out.

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
May Power BI Update Carousel

Power BI Monthly Update - May 2026

Check out the May 2026 Power BI update to learn about new features.

Fabric SQL PBI Data Days

Data Days 2026 coming soon!

Sign up to receive a private message when registration opens and key events begin.

New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.