Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredGet Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
Hello Community,
I am trying to create 2 measures (MTD/YTD) as I created the other ones and they work fine but in my current case I need to count how many entries are in each one of those months based on a distinct value of a collumn:
As seen above, imagine that i was doing MTD of this data I would want the count of septmeber to be only 1 as its the same case ID and not be 5 as the data reoeats when that case ID changes status but the creating data(action date stays the same)
The measures I tried are the following:
Solved! Go to Solution.
Hi @DanielCarvalho ,
Please update the formula of measure [Created_Tickets(MTD)] and [Created_Tickets(YTD)] as below and check if they can return the expected result...
Created_Tickets(MTD) =
CALCULATE (
DISTINCTCOUNT ( TICKET_DASHBOARD_GAVATAR_HISTORY[CASEID] ),
DATESMTD ( 'CALENDAR'[DATE] )
)Created_Tickets(YTD) =
CALCULATE (
DISTINCTCOUNT ( TICKET_DASHBOARD_GAVATAR_HISTORY[CASEID] ),
DATESYTD ( 'CALENDAR'[DATE], "30/9" )
)
If the above one can't help you, please provide some raw data in your table 'TICKET_DASHBOARD_GAVATAR_HISTORY' (exclude sensitive data) with Text format and your expected result with backend logic and special examples? Please also provide the related info if there is any relationship between the table 'TICKET_DASHBOARD_GAVATAR_HISTORY' and CALENDAR table. It would be helpful to find out the solution. You can refer the following links to share the required info:
How to provide sample data in the Power BI Forum
How to Get Your Question Answered Quickly
And It is better if you can share a simplified pbix file. You can refer the following link to upload the file to the community. Thank you.
How to upload PBI in Community
Best Regards
Hi @DanielCarvalho ,
Please update the formula of measure [Created_Tickets(MTD)] and [Created_Tickets(YTD)] as below and check if they can return the expected result...
Created_Tickets(MTD) =
CALCULATE (
DISTINCTCOUNT ( TICKET_DASHBOARD_GAVATAR_HISTORY[CASEID] ),
DATESMTD ( 'CALENDAR'[DATE] )
)Created_Tickets(YTD) =
CALCULATE (
DISTINCTCOUNT ( TICKET_DASHBOARD_GAVATAR_HISTORY[CASEID] ),
DATESYTD ( 'CALENDAR'[DATE], "30/9" )
)
If the above one can't help you, please provide some raw data in your table 'TICKET_DASHBOARD_GAVATAR_HISTORY' (exclude sensitive data) with Text format and your expected result with backend logic and special examples? Please also provide the related info if there is any relationship between the table 'TICKET_DASHBOARD_GAVATAR_HISTORY' and CALENDAR table. It would be helpful to find out the solution. You can refer the following links to share the required info:
How to provide sample data in the Power BI Forum
How to Get Your Question Answered Quickly
And It is better if you can share a simplified pbix file. You can refer the following link to upload the file to the community. Thank you.
How to upload PBI in Community
Best Regards
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
Check out the October 2025 Power BI update to learn about new features.