04-21-2017 12:42 PM
I calculated the accumulated product units and made below table. And I want to create a scatter table and use year as the play axis and shows the products as legend. But, since in the scatter chart, play axis ends at 2017, some products disappear in the end due to they don't have numbers in 2017. How can I keep the 2017 number in the chart when it ends.
04-21-2017 01:08 PM - edited 04-21-2017 01:09 PM
Do you mean keep the final amount, like for the products that have a last number in 2014? Keep that in the chart even for 2017? You might try creating a measure that does an accumulation that essentially sums all values from that year and less?
04-21-2017 01:14 PM
I already created the accumulation measure. The value in the table uses the measure. But the field will be blank if there's no units in that year. That's why some fields in 2017 and other years are blank. I want to fill up with units amount even if there are no units in that year.
The accumulation measure I used is this:
Running Total Units = CALCULATE(count(Deal[Proudct]),filter(all('Calendar'),'Calendar'[Date] <= MAX('Calendar'[Date])))
04-23-2017 11:37 PM
Please add 0 in your measure and check if it works fine.
Running Total Units = CALCULATE(count(Deal[Proudct]),filter(all('Calendar'),'Calendar'[Date] <= MAX('Calendar'[Date])))+0
Please don't hesitate to ask if you have any other problem.
04-24-2017 11:01 PM
Do you mind share your sample data or .pbix file for further analysis? So I can post the solution which is close to your requirement.
04-27-2017 01:25 PM
Sorry for late reply, v-huizhn-msft.
I tried myself with the same data from excel data source. I got the result I want.
But I still can't get the same result from sql server data souce. The methods are the same. It's weird.
I attached the .phix for your check. Thanks for your help.
how can I share my phix file?
05-02-2017 12:58 AM