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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

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
July 2025 community update carousel

Fabric Community Update - July 2025

Find out what's new and trending in the Fabric community.

July PBI25 Carousel

Power BI Monthly Update - July 2025

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