Skip to main content
Announcements
SYSTEM MAINTENANCE: Thurs., Sept. 19, 1 AM ET, Platform will be unavailable for approx. 60 minutes.
cancel
Showing results for 
Search instead for 
Did you mean: 
YCH
Contributor II
Contributor II

Set analysis : Cumulative data to year to date

Hello everyone,

Hope you’re safe and healthy.

I get data from cumulative format and I want to manage it with using YTD format to display on char no cumulative values.

The table below is a example of input data. As you can see, in February column I get the sum of the sales for January and February.

 JanFebMarAprMayJun
Input Data Sales11224304570
YTD Sales1111261525

 

I try to manage it on the script but I have a lot of dimension and analysis axis and the loading took a long time.

Do you have a set analysis that allow me to manage this ?

Thanks you !

Labels (2)
5 Replies
QFabian
Specialist III
Specialist III

Hi, please give us an example of expected chart 

QFabian
YCH
Contributor II
Contributor II
Author

Hi,

A simple bar chart like this

YCH_0-1602017598988.png

Or a simple table with month as dimension and YTD Sales as measure

Thank you

QFabian
Specialist III
Specialist III

Ok, try creating a bar chart with Month as dimension and this as expression :

if(RowNo()=1, [Input Data Sales],
[Input Data Sales] - above([Input Data Sales]))

 

let me know

QFabian
YCH
Contributor II
Contributor II
Author

It works if I selected only one year without month but if I selected more than one year or one month different thant january, for example march and april, it doesn't not work.

The values display are cumulative values and not YTD values

QFabian
Specialist III
Specialist III

so you need to do some script to solve all the problem.

try using peek and previous functions.

QFabian