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

set analysis problem

I m having this expression in my chart column for last year sales

Num((SUM({<year = {'$(=Max(year)-1)'}>}saleQty)),'#,##0')

now i want to add another sale from excel sheet. excel sheet is having these columns

yearmonthtargetQtytargetValsaleQtysaleVallocationchannel
20131105787747038009776574168820.00SRIWholeSale
20132107388788664509430773088355.00SRIWholeSale
2013312676391652950124057102011660.00SRIWholeSale
2013489166689111059697978904750.00SRIWholeSale
201351166369069627711887495489510.00SRIWholeSale
201361037868137583510109579750905.00SRIWholeSale
20137100659768732179784680109140.00SRIWholeSale
201381005437718874710170980537405.00SRIWholeSale
201391133458677169210925285841875.00SRIWholeSale
2013101088818566409010919382151115.00SRIWholeSale
201311100599796171859926279019855.00SRIWholeSale
20131295143754428209034471745635.00SRIWholeSale

i want to add this saleQty to above expression. how can i do this

1 Solution

Accepted Solutions
jagan
Luminary Alumni
Luminary Alumni

HI,

Concatenate this data to your existing table like this

Concatenate(ExistingTableName

LOAD

*

FROM Datasource;

Now use the same expression.

Regards,

Jagan.

View solution in original post

4 Replies
jagan
Luminary Alumni
Luminary Alumni

HI,

Concatenate this data to your existing table like this

Concatenate(ExistingTableName

LOAD

*

FROM Datasource;

Now use the same expression.

Regards,

Jagan.

kumarnatarajan
Partner - Specialist
Partner - Specialist

HI Dushan,

I think your set analysis is right.

EX:

Num((SUM({$<year = {"$(=Max(year)-1)"}>}saleQty)),'#,##0')


First check your year field format. Then also check


=Max(year)-1 in text box what it has been return then you will get good ideas.

Not applicable
Author

Hi,

As per your post you want to add another sales column against the dimension as you are using now in the chart.

This is your current expression for salesQty

Num((SUM({<year = {'$(=Max(year)-1)'}>}saleQty)),'#,##0')

If you want to calculate the sales on another column like SalesVal

Num((SUM({<year = {'$(=Max(year)-1)'}>}SalesVal)),'#,##0')

Now you will get total sales by adding these 2 expressions.Now your final expression would be like

Num((SUM({<year = {'$(=Max(year)-1)'}>}saleQty)),'#,##0') + Num((SUM({<year = {'$(=Max(year)-1)'}>}SalesVal)),'#,##0')

If this is not you are looking for then eloberate your requirement in detailed.

 

Regards

Kumar

Not applicable
Author

thanks all