Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Sum by Month,

New to QV, QV.bmp

My bar chart shows sum of sheets per day, How do i change the chart to show the sum of sheets per month?

Excel sheet with the sample data is attached. Any help would be nice.

1 Solution

Accepted Solutions
awhitfield
Partner - Champion
Partner - Champion

Hi Kiran,

change script to

Data:
LOAD Date(Date) as Date,
Month(Date) as Month,
Sheets,
COMPANY
FROM

(
ooxml, embedded labels, table is Sheet1);

Adding the Month Section, then you get:

With Month as the dimension and Sum(Sheets) as the expression

HTH Andy

View solution in original post

7 Replies
alexandros17
Partner - Champion III
Partner - Champion III

When you load data.xlsx add a new field,

Load

...

Year(Data)*100+Month(data) as YM

Resident

...

YM represent the union of year and month eg. 201504, use that field as dimension ...

let me know

robert_mika
Master III
Master III

Add to your Script this line

month(Date) as Month,

and then use this new Field as your Dimension

awhitfield
Partner - Champion
Partner - Champion

Hi Kiran,

change script to

Data:
LOAD Date(Date) as Date,
Month(Date) as Month,
Sheets,
COMPANY
FROM

(
ooxml, embedded labels, table is Sheet1);

Adding the Month Section, then you get:

With Month as the dimension and Sum(Sheets) as the expression

HTH Andy

Agis-Kalogiannis
Employee
Employee

Or if you can't change the script you can create a calculated dimension in your chart, using the expression =month(Date), with label Month and use the same expression.

This will aggregate the sheets by Month


Less efficient that changing the script though, so if  you have the option, go for the script change.

Anonymous
Not applicable
Author

Thank you Andrew.. it worked.

Anonymous
Not applicable
Author

Thank you Robert

Anonymous
Not applicable
Author

Thank you Agis, all the suggestions worked.