I do not understand why this is happening. I've probably spent like 12 hours messing with this.
When I use Pentaho to build an analyzer report, all years have the same values with the same data.
For example, 2014, 2015, 2016, for the month of May, will all say 1000. When you drill down and click on 2014, it will have 2015 and 2016 included as well. Same for drilling down on 2015 and 2016.
Why in the world is this happening? :)
I found a solution. Here is what I discovered:
There was nothing wrong with my data in the table. Querying the table directly gave me exactly what I expected it to.
It was the Mondrian Cube that was the problem.
I set it so that "Quarter" and "Month" had unique members. I should not not done this.
Once I removed unique members from "Quarter" and "Month," everything worked perfectly. Thanks guys!
Related
Is there a way to edit the 'no value' in the cells of a Cognos Analytics (11.0.13) dashboard crosstab visualization? I would like to change it into 0.
Thanks in advance.
My answer consists of two parts.
The first is of some techniques to do what you want to do. The second is of a caution about you really really need to understand the data to know if the values should be reported as zero rather than null.
Part the first
It depends on your data source and the provenance of the object.
If you are using a data module you can set a setting for the query item to replace the null with a zero.
If you are using an expression you could use the coalesce function to substitute a value then the source value is null. This could be used in place of whatever measure you are trying to use in your chart.
For example coalesce ( {some query item}, 0)
Coalesce takes any number of parameters and will return the value of those in the leftmost position unless it is null and then return the value for the next parameter, unless it is also null etc.
I'm assuming that you are using a file directly in the dashboard. My advice is that it might be a good idea to put it into a module, do your modelling there so that it is available in all your dashboards and reports and you can use it in conjunction with other data sources. Also, if you have a multi-sheet or multi-file source you have the ability to know how the relationships between the sheets were defined and correct them if need be. I have not had entirely good experiences with the soi disant smart relationship generation in multi-sheet files but you're using 11.0.13 and I don't think it's in there. (I'm using 11.1.5)
Part the second
For purists out there: A null is not a zero. There is a difference between a null and a zero. It's difficult for people without maths degrees (such as me, who trained as an accountant) to understand that but I have a fairly simple example which I think can show where a value is null and where it could be truly zero.
Assume that you are doing a month by month sales report for a car dealer. This time last year (i.e. in April 2019) you could be selling 2019 model year cars and some 2018 model year cars. You were not selling any 2020 model year cars because they were not released yet. In that case, the value ought to be null. Over time the number of sales of 2018 year cars would possibly be 0 as you would no longer have them in inventory to sell. In this pretend report I have a sale of 1 2018 car in February of this year.
Now, your report for 2019 will have nulls for the sales of 2020 year cars before the autumn (I think that's when they usually release new cars).
It is possible that the number of sale for April this year will be zero.
#E. van Dongen,
There is a way to set 'Missing value characters' property to '0' on Col Format option in CA 11.1.5 version. This option may be available in CA 11.0.13 as well.
I've been referred to this site by one of my friends; working with SQL query that's already built in (not really good at it and trying to learn); our Fiscal Year ended on Sept. 30 and new Fiscal Year took place (Oct to Sept). When pulling the report using the saved query; I've found that some of the data are missing as it is pulling the current Fiscal Year's data.
I'm wondering where exactly can I tweak in to pull the data for FY 2019! Here are the queries:
declare #FFY int
set #FFY = dbo.ufn_GetFederalFiscalYear(getdate())
Any help would be great. Thank you :-)
Mansur
declare #FFY int
set #FFY = 2019
List item
Hi I am trying to count the number of times an event is raised within the last 14 days of a date. simply put if i have an opened case on the 23rd of last month i want to check the previous 14 days of the 23rd to see if there have been another event raised of the same type within that period.
Is there a reason you can't do this in the SQL, and need to have it within the RDL?
The SQL should be easy, try making use of subqueries to get around the aggregate-of-an-aggregate hurdle.
If you need to do it within the RDL, the Lookup() and LookupSet() functions might make your life easier.
If this doesn't help you, could you post a bit more detail? Data structure may help.
I am very new to BO webintelligence.
I am doing a very simple query, retrieve Sales Amount for dates between 2012 and 2013. Just for this simple query when I run it, my BO crashes or gets stuck on "please wait" window. Why is this happening? If I select like 3 or 4 days like between Jan 1st 2012 and Jan 4th 2012, it runs fine. Is there anything from my end that I am doing wrong? This is in production mode.
I also wanted to point out that I have tried limiting my data set for specific region etc.
Too many unknowns to successfully assist. I presume this is webi 3.1.x or 4.1.x and I presume that the Sales Amount is a measure and that your query includes a date which does not include a time component. If you only have these two objects in your results pane and have the region in your conditions then pulling something like [Date] and sum([Sales Amt]) should not take long to execute. As previous poster suggests, try to execute the sql in a tool like SQL*Developer or Management Studio or however the source database / OLAP is stored.
Even though you've limited the data to a "region" this may be too much data. Try selecting a smaller result set of 100 rows or changing the option for "retrieve duplicate rows" on the query panel.
If possible, post the query from your report using generic object names?
I need some help on how to group my data into weekly reports. I have asked for a monthly and yearly a month ago but I can't figure out how to do the weekly reports in the same style.
I don't have any idea too what output is good to show a weekly report, but maybe like this?
Week_Sold Total_Earnings
January 1 2013 1
January 8 2013 5
Or like this?
Week_Sold Total_Earnings
January 1st Week 5
January 2nd Week 8
Or like this?
Week_Sold Total_Earnings
January 1-7 5
January 8-15 8
I have no idea what to do on this weekly so can someone recommend me a good weekly report format?
btw, my grouping is the same as the answer on this one Yearly, monthly grouping Visual Basic so please try to make the procedures close to this since im no good on Microsoft Access or Visual Basic.
Have you tried
Format([YourDateColumn], "ww")
?
This should give you the weeknumber in ISO standard. There are also some additional switches; you should find those easily in VBA.