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

July 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! 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
Community Champion
Community Champion

@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
Community Champion
Community Champion

@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
Community Champion
Community Champion

@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
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

Fabric Community Sticker Design Challenge Barcelona Carousel

Fabric Community Sticker Challenge - Barcelona 2026

If you love stickers, then you will definitely want to check out our community sticker challenge, Barcelona edition!

July Power BI Update Carousel

Power BI Monthly Update - July 2026

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

Top Solution Authors