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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

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?

For Power BI trainings or support dm or reach out to me on LinkedIn.
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
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

November Power BI Update Carousel

Power BI Monthly Update - November 2025

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