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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
NL-Nicolas
Helper I
Helper I

Dax Bug or Code Error?

Hey Community, I have a weird one here where my data column is doing a Last week vs a Week 1 year ago and for some reason most of the math is right but some years think they are in the 2100s+ for some odd reason. Here is a screenshot anything obvious I missed?

NLNicolas_0-1661776168751.png

 

1 ACCEPTED SOLUTION
tamerj1
Super User
Super User

Hi @NL-Nicolas 

your column DF_BusinessDay is text format. You need to fix that in power query and assign date data type to this column. 

View solution in original post

4 REPLIES 4
tamerj1
Super User
Super User

Hi @NL-Nicolas 

your column DF_BusinessDay is text format. You need to fix that in power query and assign date data type to this column. 

So I tried fixing that inquery howevery it was already set to Date Time, I set it to just date and still same result... Gonna keep looking in the Query Editor I think you are on the right track

Hi! @NL-Nicolas 

 

Is it possible to share the sample pbix to have a look at it?

If my response has successfully addressed your question or concern, I kindly request that you mark this post as resolved. Additionally, if you found my assistance helpful, a thumbs-up would be greatly appreciated.
Thanks,
Ankit Kukreja
www.linkedin.com/in/ankit-kukreja1904

I cant in this regard due to the client but if there is anything you need to see I can share some Screenshots

 

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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

Top Solution Authors