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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
Anonymous
Not applicable

X axis with minute value dateadd not working.

So I have this table:

table dateadd error.png

 

And I created the following measure:

 

Máx Last Day = CALCULATE(
MAX('bravo claro_nrt_view'[activeUsers]),
DATEADD(dCalendar[Date],-1,DAY)
)
 
This is the result:

 

error pbi dateadd.jpg

 

 

I would like to see for instance 08/04/20 00:00 127 and 126 (valeu from 07/04/20 00:00

 

But if the values are with date and time the comparison is not working,,,,

 

only in the secont example we can see that its working (when using dates and note date/time).

 

This is a direct query as the data is being uploaded every 15 min.

 

Any tips?

3 REPLIES 3
Greg_Deckler
Community Champion
Community Champion

Post sample data please. Please see this post regarding How to Get Your Question Answered Quickly: https://community.powerbi.com/t5/Community-Blog/How-to-Get-Your-Question-Answered-Quickly/ba-p/38490



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...
Anonymous
Not applicable

HI Greg,

 

Please note that it was supposed to be a direct query..... I imported the data to upload it here.

 

Kind Regards,

 

 

Anonymous
Not applicable

If you use a time-intel function, it's working on the data type you supply. If it's datetime, it'll work using datetimes (points in time) and hence it will move the point in time to another point in time, not to a whole day.

The best practice says not to store dates and times together. Make them separate dimensions.

You can use a mixed model (Dual mode) and store the Calendar in the model directly.

Best
D

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

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