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

Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!

Reply
cbtekrony
Resolver I
Resolver I

DAX/Visualization Table Duplicating Data for next year

Attached is sample data from my visualization table. You can see the Product Value is completing a weird calculation - each year is duplicating the product value from the previous, and my grand total is twice what is should be. 

Here is DAX for a couple columns:

Annual ACV Diff Between TY LY = SUM('Divya ACV'[Product Value]) - [Annual ACV Product Value LY]
Annual ACV Product Value LY = CALCULATE (SUM('Divya ACV'[Product Value]),SAMEPERIODLASTYEAR('Calendar Table'[Date]))
 
YearProduct CategoryProduct Value Annual ACV Product Value LY  Annual ACV Diff Between TY LY 
2011A$131,282.70  $                                                                               131,282.70
2012A$131,282.70 $                                                                   131,282.70 $                                                                            (131,282.70)
2012A$1,397,633.70  $                                                                           1,397,633.70
2013A$1,397,633.70 $                                                                1,397,633.70 $                                                                         (1,397,633.70)
2013A$2,472,531.60  $                                                                           2,472,531.60
2014A$2,472,531.60 $                                                                2,472,531.60 $                                                                         (2,472,531.60)
2014A$4,010,372.20  $                                                                           4,010,372.20
2015A$4,010,372.20 $                                                                4,010,372.20 $                                                                         (4,010,372.20)
2015A$5,295,672.70  $                                                                           5,295,672.70
2016A$5,295,672.70 $                                                                5,295,672.70 $                                                                         (5,295,672.70)
2016A$6,553,524.60  $                                                                           6,553,524.60
2017A$6,553,524.60 $                                                                6,553,524.60 $                                                                         (6,553,524.60)
2017A$7,571,281.70  $                                                                           7,571,281.70
2018A$7,571,281.70 $                                                                7,571,281.70 $                                                                         (7,571,281.70)
 

Not sure why this is happening!

 

1 ACCEPTED SOLUTION
v-lid-msft
Community Support
Community Support

Hi @cbtekrony ,

 

 

Based on my test,  if we don’t summarize the [Product value] field, then we can get the table like this, each year is duplicating the product value from the previous

 

33.png

 

But if We select  Sum the value field, we can get the correct result as following,

 

34.png

 

BTW , pbix file as attached


Best regards,

 

Community Support Team _ Dong Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

2 REPLIES 2
v-lid-msft
Community Support
Community Support

Hi @cbtekrony ,

 

 

Based on my test,  if we don’t summarize the [Product value] field, then we can get the table like this, each year is duplicating the product value from the previous

 

33.png

 

But if We select  Sum the value field, we can get the correct result as following,

 

34.png

 

BTW , pbix file as attached


Best regards,

 

Community Support Team _ Dong Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Greg_Deckler
Super User
Super User

Sample source data would be helpful here: 

Please see this post regarding How to Get Your Question Answered Quickly: https://community.powerbi.com/t5/Community-Blog/How-to-Get-Your-Question-Answered-Quickly/ba-p/38490


@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
Mastering Power BI 2nd Edition

DAX is easy, CALCULATE makes DAX hard...

Helpful resources

Announcements
April AMA free

Microsoft Fabric AMA Livestream

Join us Tuesday, April 09, 9:00 – 10:00 AM PST for a live, expert-led Q&A session on all things Microsoft Fabric!

March Fabric Community Update

Fabric Community Update - March 2024

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