on 01-17-2017 10:22 AM - last edited on 02-03-2024 7:26 PM by postmig_api_4
Hi,
We are showing a model life cycle for a period of 36 months, the first month is first sale of the model second is second sale and so on.
I have a crosstab/Line bar with following facts and dimension
1. Model
2. Month Count (1 2, 3 till 36 where 1 tells us the first sale of a product)
3. Defect Ratio =RunningSum(defect reported)/Runningsum(Total Sales)
I am comparing different models in a line chart as attached.
Problem : The Data for one of the model is till 17th month count only in the database and rest of the model number has data till 36 month but the chart is showing flat line even after there is no data for that model number after monthcount 17. Can we break the running sum by any chance, I calculated max (monthcount) for each model number and tried resetting running sum at max (month count) but that is not working.
We want the line to stop at month count where there is no data for the model number.
Hi ,
Try making "NULL" for discontinued values .
=if(value<>0;value) leave else part , so it will make the value as NULL .
Regards
Sateesh
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks Sateesh, it worked ...I used where amount>=0 then runningsum left the else part ...
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
try this formula.
=If([defect reported]=0) Then 0 Else RunningSum([defect reported])
same for other.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks Amit for the reply but it is nt working , I Changed the formula for defects and total sales like this
if (sales) =0 then 0 else runningsum(sales;row;modelno) but it is not working and it gives div/0 error also ...
User | Count |
---|---|
89 | |
10 | |
10 | |
9 | |
6 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.