on 05-12-2016 5:03 AM
I have a table like this.
The database does not have 2016-04-02.
There was no sales on that particular day.
I want the table to look like this:
2016-04-01 200
2016-04-02 0
2016-04-03 150
I tried 1 solutions below.
Format Table->Show Rows with empty dimension values.
But this does not Work
Can anyone please give me ideas how I may overcome this problem?
Hi Hayden,
Could you please try TimeDim([DateObject]) function. Basically it gets all the missing date with defined period.
Regards
Niraj
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Hayden,
there is three ways to deal with your problem
Option 1) Your sales table is inner joined with time dimension table so you are not getting dates where there is no record in sales table.
So if you do a left outer join on time dimension you will get all the dates
Option 2) In report level, create one more data provider with date object and merge the dates of initial dp and this new dp. Then also you get all the dates
Option 3) Use the function TimeDim([date];dayperiod) this also gives all the missing dates (as Neeraj mentioned). Then you need modify the measure saying if(isnull(sales);0;sales)''
Hope this helps. choose the option which is suitable in your sitution
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thank you!
1. I did not know such function existed.
2. I tested but I get #multivalue error.
I do not have access so I do not know the solution.
If you happen to know the solution for this, could you please let me know...?
User | Count |
---|---|
86 | |
10 | |
10 | |
9 | |
7 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.