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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
Baddeck
Frequent Visitor

1899 issue with SELECTEDVALUE from Slicer

Hi, I'm getting an 1899 date when I use a SELECTEDVALUE (to get the slicer date) and then offet from that date.

I understand the 1899 issue but can't find a solution.

 

Correct date returned: x= SELECTEDVALUE(table1[Date])

1899 date returned: x= SELECTEDVALUE(table1[Date])-14 (date less14 days)  

1 REPLY 1
Greg_Deckler
Community Champion
Community Champion

@Baddeck I can't replicate this. Are you sure that this isn't occuring when you have more than one date selected? That would cause SELECTEDVALUE to return BLANK or effectively 0 which is 12/30/1899 and minus 14 days would be 12/16/1899. You could try using MAX instead of SELECTEDVALUE and that would eliminate that kind of problem.



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

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