# AX 2012 Sum up non selected Misc Charges : Tough One

**URL:** <https://www.dynamicsuser.net/t/ax-2012-sum-up-non-selected-misc-charges-tough-one/54370>\
**Category:** Developer Forum\
**Created:** [August 14, 2014, 6:45am UTC](https://www.dynamicsuser.net/t/ax-2012-sum-up-non-selected-misc-charges-tough-one/54370 "2014-08-14T06:45:51Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![vikas99](https://avatars.discourse-cdn.com/v4/letter/v/b782af/32.png) [@vikas99](https://www.dynamicsuser.net/u/vikas99)\
**Post date:** [August 14, 2014, 6:45am UTC](https://www.dynamicsuser.net/t/ax-2012-sum-up-non-selected-misc-charges-tough-one/54370/1 "2014-08-14T06:45:51Z")

</div>

Hi ,

I am having a different requirement altogether for a AX 2012 ssrs report.

User will be having an option to select misc charges .

parameters amount for that sales line in ax  
Misc charges 1 acharge 10  
Misc charges 2 bcharge 20  
Misc charges 3 ccharge 30  
Misc charges 4 dcharge 40

Lets say the user selects Misc Charges 1 and Misc Charges 2 then the output should be as follows

Misc Charges 1 - 10

Misc Charges 2 - 20

Other Charges - 70 (30 +40)

Other charges will be a fix column which will give the results of the non selected misc charges.

Also in case misc charge 1 is selected and there is no misc charge 1 allocated to the line then the misc column should not be displayed ,if there is data then it should be displayed.

Thanks,

Vikas Mehta

---

<div class="post-metadata">

**Author:** ![MartinDrab](https://avatars.discourse-cdn.com/v4/letter/m/e0b2c6/32.png) [@MartinDrab](https://www.dynamicsuser.net/u/MartinDrab)\
**Post date:** [August 14, 2014, 7:11am UTC](https://www.dynamicsuser.net/t/ax-2012-sum-up-non-selected-misc-charges-tough-one/54370/2 "2014-08-14T07:11:31Z")

</div>

And what’s your question?

It looks quite simple to me. Just use a data provider class and fill a temporary table according the logic you’ve described.
