Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!
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.
Solved! Go to Solution.
Hi @Gracie,
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.
Best Regards,
Angelia
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?
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])))
Hi @Gracie,
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.
Best Regards,
Angelia
It doesn't work. It just puts 0 in the blank fields, not rolling the previous number to the current year.
Hi @Gracie,
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.
Best Regards,
Angelia
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.
https://app.powerbi.com/groups/me/reports/a139c91a-5871-414c-b2da-9ea5e792b7ee/ReportSection5
how can I share my phix file?
Hi @v-huizhn-msft,
Here is the OneDrive link. https://onedrive.live.com/?id=6C9EFA8D3A9D9555%21127&cid=6C9EFA8D3A9D9555
Thanks.
User | Count |
---|---|
128 | |
108 | |
100 | |
65 | |
62 |
User | Count |
---|---|
137 | |
115 | |
102 | |
71 | |
61 |