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
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
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.