cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Helper III
Helper III

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

Accepted Solutions
Community Support
Community Support

Re: DAX/Visualization Table Duplicating Data for next year

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
Highlighted
Super User IV
Super User IV

Re: DAX/Visualization Table Duplicating Data for next year

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


---------------------------------------

Putting square pegs in round holes since 1972.

I have a NEW book! 
DAX Cookbook from Packt
Over 120 DAX Recipes!




Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




Community Support
Community Support

Re: DAX/Visualization Table Duplicating Data for next year

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

Helpful resources

Announcements
August 2020 Community Challenge: Can You Solve These?

August 2020 Community Challenge: Can You Solve These?

We're excited to announce our first cross-community 'Can You Solve These?' challenge!

Community Blog

Community Blog

Visit our Community Blog for articles, guides, and information created by fellow community members.

Upcoming Events

Upcoming Events

Wondering what events you could join or have an event to promote yourself? Check out our Upcoming Events.

Community Summit Australia – Join Online!

Community Summit Australia – Join Online!

Be a part of the leading Microsoft Business Applications digital event, curated for the APAC community.

Top Solution Authors
Top Kudoed Authors