Forum Discussion
Wrong Totals Using IF and Values()
Hi, v-ljerr-msft,
Thanks for your reply!
Here is a link to one drive where i have posted the test file: https://1drv.ms/u/s!AtXhBVThw98Ja07SGd9hSLPNGxo
There are a few extra measures in the file, but the ones that should be focused on are the ones that i mentioned in the first post. In the report view you may switch from year 2015 to 2016 to see how newSales/lostSales work/Dont work. If you have any tips on changes i can make in order for the lostSales to show and sum up the right values, that would be great.
Best Regards
After some more testing i have added the following formula to the table:
CustomerNameCount = COUNTROWS(VALUES(SalesData[CustomerName]))
As you can see in the image below, it seems that the Values() method doesn´t work unless there exists a SalesYTD value.
I just wanted to add that in case it can help someone figure out a solution.