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

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes! Register 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
September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 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.

Top Solution Authors
Top Kudoed Authors