
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Sum quantity
Hello,
I have a table in which there are a quantity of equipment by week (February weeks in my example).
in another table I would like to have the sum of qty by month. I don't find the expression, the aggr ????
I expect that I'm enough clear.
than you for your help.
Patrick
- « Previous Replies
-
- 1
- 2
- Next Replies »
Accepted Solutions

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Oh... I see that you are doing a Distinct count... I am not sure why you need a DISTINCT... but if you need that... may be try this
Sum({<Facility = {'$(vFacility)'}, ModelFamily = {'$(vModelFamily)'}>} Aggr(Sum(DISTINCT {<Facility = {'$(vFacility)'}, ModelFamily = {'$(vModelFamily)'}>} [TC inventory]), Year_Week, Year_month))


- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
If there is a Month filed in the Data Model all you have to do is to bring it in your chart instead of Year-Week field...
If you don't have a Month field i suggest you to create it...

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello, I tried without success as you can see below


- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
You must have done something wrong with your date fields...
Can you share your script or at least the part where you create your date fields?

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ciao Dimitrios,
below my script.
thank you very much for your help.
I had in mind that the problem coming from my script


- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
What i want you to show me is how you create the Calendar fields and most of all the Work_Week field which is your key

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ok.
the calendar is defined in an excel file like this:


- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Your calendar seems to be allright...
Did you use the Sum() function when yoyu tried to replace Year_Week with Year_Month in your chart?

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I'm using the same expression for the both .. .either for week or for month ....

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Would you be able to share your Excel file by attaching it here

- « Previous Replies
-
- 1
- 2
- Next Replies »