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
Highlighted
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!




Highlighted
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
June 2020 Community Highlights

June 2020 Community Highlights

Featured community members, changes to the Community, and more! Read up on recent Power BI community news.

Using the Community

Using the Community

Need help with the Power BI Community? Our 'Using the Community' support articles are a great place to start.

Community Summit North America

Community Summit North America

Innovate, Collaborate, Grow. The top training and networking event across the globe for Microsoft Business Applications

Power Platform 2020 release wave 2 plan

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Top Solution Authors
Top Kudoed Authors