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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

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
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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