Drillthrough action not available after convert the pivot tables content to formulas - sql

A Pivot table was build based on SSAS Multidimensional Cube. In the Cube a Drillthrough action was defined to show the documents details.
I converted only the content of the report from excel to formulas. This means the filters remains unchanged so the user can update the numbers only using the dropdown from filters.
The pivot table is listed below:
-> I observed that the Drillthrough action is not active anymore if you don't convert also the filters to formulas, just like below:
How can I enable the drillthrough action without to convert the filters to formulas?

I have noticed that if I have multiple items selected in the filter before converting to formulas the drillthrough actions are disabled. This means that the filter is a cubeset instead of a cubemember. I don't know why this is, but I think if you don't convert the filters, it treats them as cubesets regardless of if a single member is selected.
To get around this issue you could go ahead and convert the filter to formulas and then replace it with your own drop-down using data validation. For whatever attribute you want to filter, make a cubeset and then do cuberanked members.
Ex: In cell G2 I have =CUBESET("AWSSASMD","[Product].[Category].children","Categories")
In cell G3, I have: =IFERROR(CUBERANKEDMEMBER("AWSSASMD",$G$2,ROW()-2),""). I pull that formula down to 3 or four past the number of items I think I might have.
Then in cell B2 where I had the filter, I put a data validation.
Allow: list
Source: $G3:$G8
Then I can change my data validation drop-down, and my numbers change. And my drillthrough action is still available to me.
This works for me in Excel 2016.

Related

drillthrough on text (not cell)

Just want to know if this is even possible, before I drive myself insane in google-searches.
I know how to drillthrough to another rapport when the user clicks on a cell. But what if the cell has multiple values, e.g. Server-names (comma-seperated), and I only want to pass the servername that the user clicked?
As I see you can only pass the values of the whole cell or what?
Using reporting services 2012 R2 with report builder 3.0.
Thanks
I don't think you can do that directly but...
You could create a subreport that accepts the comma separated list of servers as it's parameter.
The subreport would then split these into separate cells and have an action on the cell that then take you to the drill through report. I done something similar in the past and it's work quite nicely. You just need to make the subreport nice and small so it'll fit in you existing cell.
It you wanted to keep them on a single line then subreport would have to be a matrix with a column group grouped by servername. It won't be as compact as a comma separated list as the columns will all have to be wide enough to fit the longest name but it works.
If you need any more help I'll provide more more detailed solution but this hopefully will get you going.

Excel Named Range Formula - Not Automatic Updating

I have a table in Excel that has column heading names (e.g. data_type1, data_type2, etc.). The data in this table changes based on parameters entered on another sheet, and they are pulled to charts which update dynamically.
As a convenience to a user who might be using this sheet I have added a 'user specified function' (non-vba) which also plots to one of the charts. By user specified function I mean I have three cells with dropdown lists. Two correspond to the table headings and one has a short list of operations that can be applied between the two selected data types (e.g. a user might select 'dataype1', '+', 'datatype2' which would produce a sum of the two in the final column of my table).
The user specified function is achieved by defining a named 'range/function' to match the drop downs with their respective column headers and then calls evaluate. See below:
=EVALUATE("="&ADDRESS(ROW('Raw Data'!XFD5),MATCH(user_in1,'Raw Data'!$A$4:$AF$4,0)) & user_operation & ADDRESS(ROW('Raw Data'!XFD5),MATCH(user_in2,'Raw Data'!$A$4:$AF$4,0)))
I name this 'user1_result' and then enter =user1_result in the final column of my table. This approach is nice because it calculates much faster than doing the same thing through building a UDF in VBA and then applying that UDF to every cell in a fairly long column.
Now here is my hangup, this works fine initially, but if the user makes a parameter change that affects one or both of the selected datatypes, the user specified column does not recalculate on-the-fly with the updated data. If the user re-toggles any of the dropdowns the data does recalculate. I am speculating this is from one of two things:
1) Excel does not recognize that a precedent of 'user1_result' has changed, and so for efficiency sake doesn't bother to recompute the column;
2) The 'Evaluate' function used in the named definition of 'user1_result' is not checked for updating, because it's not a normal function (doesn't show up through intellisense if you try to just add that to a cell).
So I am looking for some either confirmation or refutation of these speculations. In the case of confirmation I am hoping to get some advice on how to force the user specified column to update if its precedents change.
One solution is to have VBA do this checking for me and force the computation, but I would like to leave that as a last resort. So, non-VBA solutions preferred.
For posterity I'll answer the above question based on Mat'sMug's feedback:
Regarding the cause of the problem:
The reason the user specified column does not update is because the 'Evaluate' portion of the 'user1_result' named formula is intended to be used at the application level and not as a worksheet function. Because of this, Excel doesn't bother checking to see if its precedents change and ignores it for recalculation.
The problem's solution:
It was suggested to use VBA to watch for worksheet_change events, however, my problem requires that I do NOT use VBA. So, an alternative workaround that forces Excel to check precedents and recalculate the user specified function uses two steps. This functions as a pseudo worksheet_change stand-in.
First, I use a helper cell that performs a countif with an arbitrary counting condition. I don't need it to change, I just need it to share precedents with the inputs of 'user1_result'. So I have it count the number of cells in the first row of data that are larger than some constant:
=COUNTIF(A5:AK5,">100000")
The result of this computation doesn't matter, but in my case my data have small values and so this returns 0 always.
Second, I use a condition for the computation in the user specified column (the last column in my data table).
=IF($AO$1=$AO$1,user1_result)
Now, anytime my data table updates, the final column using the named function recomputes. Simple, and if using macros is not viable (for example due to a client/user's security concerns), this can sort of substitute for a worksheet change event.
I hope somebody out there gets use from this!

MS Access 2016 VBA - modify TextBox via VBA in Tabular Form

the problem I have seems to be related with the tabular form which allows showing multiple entries at the same time.
I want to have one column (A) calculated from another column (B) but (A) shall still be editable. If I use ControlSource for (A) the underlying textbox becomes non-editable. The same applies for the usage of queries. Both options are not good. Therefore I want to use VBA code that modifies the content of (A) based on changes in (B). And vice versa, if the user modifies (A), (B) gets updated. Btw. (A) does not get stored in the database, only (B).
Problem is, if I update the value of (A) via VBA during an event of (B), the whole column (A) shows the same value and is not calculated line by line in the tabular form mode. Any assistance / help appreciated. Thanks!
An unbound textbox will show the same value for all records. Period.
2-way data dependency is unusual. Think I have seen something like it only once. Involved calculating square footage. User entered rectangular dimensions then had choice of entering the actual footage to account for irregular boundaries or cutouts and the adjustment was calculated or entering the adjustment and the actual was calculated. User had to select a radio button to designate the editable control. This was not on a continuous records form, just single record.

Excel 2010 Macro Pivot Label Filter

I am having an issue running a label filter on a column (classic view) within my pivot table. I am trying to weed out the items in the data that are less than 180 days old. I can't adjust the data because it is used to feed multiple worksheets and I don't wish to copy the data and manipulate it for just this worksheet. Below is the line that I am running.
ActiveSheet.PivotTables("PivotTable5").PivotFields("Ageing").PivotFilters.Add _
Type:=xlCaptionIsBetween, Value1:="180", Value2:="9999"
This is a "between" filter. I have tried greater than and greater than or equal to but the same result occurs. After this line is run, I can click into the pivot table soft/filter down arrow and see that the filter is there as a between and even the days are inputted but the data does not reflect this. If I hit "OK" on the filter it then applies itself but I do not wish to have to do this manually.
Yes, "PivotTable5" is the pivot table in question. Can anyone help me automate this process?

SSRS Row Gropings Inverted (Export to Excel)

When i run my report my report in SSRS all groupings work correctly however when i export this report to excel the proper rows are grouped but the grouping is inverted (i.e. the last item in the grouping has the '+' sign instead of the parent, top row)
thanks for any help in this matter!
In SSRS, when exporting to Excel, if the report item that controls whether another item is toggled is not in the previous or next row or column of the item being toggled, the outline is disabled also. See:
https://msdn.microsoft.com/en-us/dd255234.aspx
This can happen if you have your total added after the group rather than before.
(right click on the group and click add total before)
However, we really need more details/screenshots to see what the cause might be.
The drilldown in SSRS has more features than the grouping in Excel can handle so sometimes it is not possible to get in excel what you have in your report..