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

Score big with last-minute savings on the final tickets to FabCon Vienna. Secure your discount

Reply
Ybam
Helper I
Helper I

DATEADD function returns wrong values

Hi, 

I have a problem with my mesure it returns wrong values and in my graph values are agregate by month not by the max of my calendar 

 

bug1.PNG

For N-1 the correct value is 307 and for N-2 it is 303
For the graph I expect a value of 22 and not 211 for the month of March N-1 and 7 for N-2

 

bug2.PNG

 

 

 

 

5 REPLIES 5
VijayP
Super User
Super User

@Ybam 

If possible to share the pbix , I can see the issue and let you know the proper solution




Did I answer your question? Mark my post as a solution! Appreciate your Kudos!!
MY Blog || My YouTube Channel || Connect with me on Linkedin || My Latest Data Story - Ageing Analysis

Proud to be a Super User!


VijayP
Super User
Super User

@Ybam 

 

I think you are selecting Day from Date Hierarchy . dont select that way if so,

in the Value Fields next to Date you have a small icon which shows a drop down from there select Date not Date heirarchy

On emore important thing you date should be from DAte Table only




Did I answer your question? Mark my post as a solution! Appreciate your Kudos!!
MY Blog || My YouTube Channel || Connect with me on Linkedin || My Latest Data Story - Ageing Analysis

Proud to be a Super User!


My date is from my table Calendrier[Date] I change to Date table but I lost Hierarchy and I must have Hierarchy Year-Month for all my graphs 

Ybam
Helper I
Helper I

I understand, but when I using day in my axis I don't have this issue. bug3.PNG

 

But when it is year in axis I have this issue

bug4.PNG

VijayP
Super User
Super User

@Ybam 

You ahve used Year as interval in DAX and in Graph you are using month in Axis , that is causing issue




Did I answer your question? Mark my post as a solution! Appreciate your Kudos!!
MY Blog || My YouTube Channel || Connect with me on Linkedin || My Latest Data Story - Ageing Analysis

Proud to be a Super User!


Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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