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
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
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.