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

Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM. Register now.

Reply
Anonymous
Not applicable

compare today date equal to another column date

How to compare (today date +1 equal to RequestClosedDate ) both are same return distinct count of Ticketno else 0

 

Capture.PNG

 i have tried 

 

Ticket-Closed-oneday =
var _DAY = DAY(MAX('Table'[RequestClosedDate]))
var _MONTH = MONTH(MAX('Table'[RequestClosedDate]))
var _YEAR = YEAR(MAX('Table'[RequestClosedDate]))

RETURN

CALCULATE(DISTINCTCOUNT('Table'[Ticketno]), FILTER('Table',DAY(TODAY()+1) = _DAY && MONTH(TODAY()) = _MONTH && YEAR(TODAY()) = _YEAR))
 
it's not working 
 

Could you help with me these questions?

Thankful

Rajesh

 

3 REPLIES 3
Mariusz
Community Champion
Community Champion

Hi @Anonymous 

 

Try this 

Ticket-Closed-oneday = 
VAR __tomorrow = TODAY() +1
RETURN 
    CALCULATE(
        DISTINCTCOUNT( 'Table'[Ticketno] ), 
        'Table'[RequestClosedDate] = __tomorrow
    )

 

Best Regards,
Mariusz

If this post helps, then please consider Accepting it as the solution.

Please feel free to connect with me.
LinkedIn

 

Anonymous
Not applicable

Hi @Mariusz  @amitchandak 

 

above you mentioned measures not working, its return blank value

 

suppose if i'm using column

 

Ticket-closed-oneday = IF ( TODAY ()+1 = DATE ( YEAR ( Taxone_SP1[RequestClosedDate]), MONTH ( Taxone_SP1[RequestClosedDate] ), DAY ( Taxone_SP1[RequestClosedDate] ) ),
Calculate(DISTINCTCOUNT(Taxone_SP1[Ticketno])),0)
 
it's showing duplicate ticket also,  but i need unique ticket ID
 
Thanks
Rajesh
amitchandak
Super User
Super User

@Anonymous , try like

CALCULATE(DISTINCTCOUNT('Table'[Ticketno]), FILTER('Table','Table'[RequestClosedDate] = today()+1))

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 Power BI update to learn about new features.

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.