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

Data Days is here! Join us now for 60+ days of learning, challenges, and connection. Learn more

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
Fabric Data Days is here Carousel

Fabric Data Days 2026

Don't miss out on Data Days, June 15 through August 7. Learn Fabric, Power BI, SQL, AI and more.

May Power BI Update Carousel

Power BI Monthly Update - May 2026

Check out the May 2026 Power BI update to learn about new features.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.