Cognos 11.0.13 DMR crosstab, how to set the drill through for the correct year when there are two facts -- Current Year Sales and Prev Year Sales - cognos

How can I pass the correct year in the drill through?
When using a list - each column can have it's own drill
In a crosstab, the drill through appears to be the same for all cell values (showing metrics)
In this example, the crosstab has two metrics -- current sales and prior year sales
They are stitched by company and year
The join for prior year sales is based on Year -1, this way the Report can show a specific Year (like 2019) and the facts adjust accordingly (i.e. Current year sales is for 2019 and prior year sales 2018, even though the crosstab shows 2019 for the year). The metrics display correctly
Because of this approach (using a crosstab), the facts share the same drill through
How can I pass the correct year in the drill through?
I have the drill through using the Year and sales rep. Because of this the drill through shows the selected year, EVEN when selecting the metric for prior year
Crosstab looks like this
| Year (like 2019 |
| Month (like 9) |
|Sales|Prior Year Sales |
Sales Rep|456 | 123 |
|523 | 0 |
|623 | 123 |
Drill through pass data item -- Sales Rep, Year (which works)
However, when selecting prior year, the drill through is passing 2019
Reminder, in a list, each column has a separate drill through
Btw: If I try to change the list to a crosstab, I lose the drill through definitions

So I can't say I fully understand how you are getting your prior year, I fear with 2019-1 and stitching joining items, you maybe getting out of MDX(DMR) functionality and in to SQL(Relational) contexts.
If you are using DMR and have the current Year projected on an edge, you could get the previous year via the lag function, more complex dynamic functions such as parallel period also exists.
Does the drill behavior change if you project the 2019 member and a calc of lag(2019) projected next to it?

Related

Automate pivot table year over year price increase checks

I am trying to use a pivot table on a large data set to understand if price increases went through to customers on orders of the same item number.
From left to right my rows are:
Customer name
Item number
Order year
The column I have is Sigma Values
and Sigma values is Average of price.
Not every item number has sales every year i.e. some customers might only have bought one item in 2018 and no orders since then, others have bought the same item in 2018, 2019 and 2020.
Any idea how I can sort this dataset to exclude any items that don't have multi year records?

Comparing Pivot Table Data

Every month I produce a schedule of forecasted orders for the next 5 years by date and part number. I have sorted the data into a pivot table to show material as the rows with Year, Quarter, Month as the columns and the quantity of the order as the values. I need to compare the differences between the report every month. EXAMPLE: If our forecast is 40 of one part in June 2020 and the next month when we run the report the forecast is for 80 in June 2020, I need to be able to see that difference.

SSAS compare 2 YTD values for same month in different years

I am developing a cube in SSAS, I need to be able to compare YTD values between current year and last year.
I have the below scenario:
Budget types by year : budget1-2016 , budget2-2016 ,budget1-2017
, budget2-2017.
The budget types should be placed in the columns
Units: should be placed in the rows
The measure is called "Billings"
I need to compare YTD value for "Billings" between budgets "budget1 - 2016" and "budget2-2017" (different budget types and year) for a specific month.
when the Calendar month is included in the rows or columns everything works fine,
but if it is included in the filter and I choose for example February 2016 and February 2017, the results are not as expected.
With the usage of the TAIL function, only the higher month is taken into consideration and the column from 2016 is removed.
Is there a way to put the calendar month in the filter, select same month from different years and be able to see their YTD values?
The problem is that you put two members in the filter. CurrentMember doesn't work with two tuples. Hence [Data Date].[Calendar].CurrentMember is [Data Date].[Calendar].DefaultMember is [Data Date].[Calendar].[All]. It runs the following code:
Sum(
PeriodsToDate(
[Data Date].[Calendar].[Calendar Year],
[Data Date].[Calendar].[All]
),
[Measures].[_Billings]
)
You are choosing two month from different year, thus it's unclear what do you want to return from the PeriodsToDate() function. The data since January 2016 or January 2017? Choosing one of the members will fix your problem and make it clear.
I don't guarantee that's the perfect code to work with, but it may does the magic as well, add yet another calculated members to sum months:
Sum(
existing [Data Date].[Month].[Month].Members,
[Measures].[Billings]
)

Display zero values in Group option

I have a problem in Excel 2013 Grouping option. I have created dates and number of tickets created for over a period of time (3 years). I group data on Days to get weekly report. Upon grouping, I see that for some week there is no data. So I want it to appear as "Zero" for that week. But what I see is that week does not appear in the grouped data list.
This is what I am trying to explain - I have selected May 2014 as Created Month and I have daily data hence have grouped it as Days. But you can see that 5/12/2014 - 5/18/2014 and 5/19/2014 - 5/25/2014 is missing. I know they have no value but I want it to appear as zero so that my graph appears correct.
4/28/2014 - 5/4/2014 4
5/5/2014 - 5/11/2014 9
5/26/2014 - 6/1/2014 1
Make sure you have no gaps in your date ranges.

Top X in Excel/PowerPivot Pivot Table Filtered by Column Label

I'm working on a Powerpivot Pivot Table listing sales for my company. The table looks like this:
Row Label: Client Name
Column Label: Year
Values: Sales Amount
So something like this (columns are Client Name, 2014, 2013, 2012)
Client 1 | $10,000 | $15,000 | $20,000
Client 2 | $15,000 | $12,000 | $30,000
I'd like the table and the years to be the same but I want to show the top 25 customers only for year 2014. If I tell it to take top 25 by customer sales it gives me top 25 by total sales given all the filters. How can I do this?
Master_cylinder,
after thinking about this I suggest creating separates calculated measures (Excel 2010, in 2013 it's Calculated Fields) for each year that will allow easy filtering. It might be tricky if you have way to many years, but this way you can be sure the results are filtered exactly how you need to:
So for each year, create this simple measure:
=CALCULATE([Sum of Sales], Sales[Year]=2014)
For other years, simple change the filter parameter at the end - replace 2014 with different years. Than drag all the measures on the table, so that you will get something like this:
When you are done, simple filter the table using regular filter option and pick those settings:
This will get you the results you need.
PS: This is the powerpivot table structure that I was working with, and link to my source file in Excel (2010):

Resources