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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
pandakillsalot
Helper II
Helper II

Got wrong date from slicer

Hi all,

 

The date in my table is stored in the format  "mm--dd--yy"  as shown in the picture. When I wrote a measure as "CALCULATE(DIVIDE(StressProduction[NumberPassesCorrect],StressProduction[Unique SN count],0), DateTable[Date] <= 1/1/2018)", I got no data showing up. And the latest date stored is 1/1/2018. However, when I did "CALCULATE(DIVIDE(StressProduction[NumberPassesCorrect],StressProduction[Unique SN count],0), DateTable[Date] > 1/1/2018)",  I got all the data I want.

 

Does anyone have any thoughts about what's happening?

 

Best,

YilinCapture.PNG

1 ACCEPTED SOLUTION
Anonymous
Not applicable

@pandakillsalot,

Change your measure to the following:

CALCULATE(DIVIDE(StressProduction[NumberPassesCorrect],StressProduction[Unique SN count],0), DateTable[Date] <= DATE(2018,1,1))



Regards,
Lydia

View solution in original post

1 REPLY 1
Anonymous
Not applicable

@pandakillsalot,

Change your measure to the following:

CALCULATE(DIVIDE(StressProduction[NumberPassesCorrect],StressProduction[Unique SN count],0), DateTable[Date] <= DATE(2018,1,1))



Regards,
Lydia

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

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!

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.

Top Solution Authors