How to split rows in Spotfire data table? - spotfire

I have 3 applications App1, App2 and App3. I need a report the number of issues that has come per report. The App category column has all these 3 values. However there are issue that impact all the applications (common to all apps). So they are marked as all. My report should have count against 3 Applications only. So whenever I have an 'All' type I need to show it against all the 3 applications.
App1 - 3
App2 - 2
App3 - 1
All - 2
It should show:-
App1 - 5
App2 - 4
App3 - 3
Is it possible to do it at the data table level in spotfire?
Thanks in advance!

One solution would be to create a calculated column that does this for you. Then instead of displaying the "Number of Issues" column, you would display the new calculated column instead. The expression for the calculated column would be:
Integer([Issues] + Sum(If([App Name]="All",[Issues],0)))
For a table table as shown here:
Data Table Here
Now, if you don't want the 'All' row to be displayed or included in your visualizations at all, you can always use filtering, or limit the data at the visualization level, through an expression. The latter can be done by right-clicking on a visualization and going to Properties > Data > Limit Data Using Expression (Edit) and inserting the following expression
[App Name]!='All'
I hope this helps.

Related

Data Query based on the drop down selection based on the dependent/independent drop down validation list

Screenshot 1:
Screenshot 2:
Hi Guys,
Need help with the Data Query based on the drop down selection based on the dependent/independent drop down validation list
Sample Images attached
I tried various formulas but was not able to get it working.
I cannot use INDIRECT because these drop down list are independent (or may be dependent)
I have a Metrics Table in my Consolidated Sheet and i have 10 teams (Team 1, Team 2...Team 9), 3 Environments (Production, Non Prod, No Field, All).
I have 10 other Sheets (Team 1, Team 2... Team 9). Each Sheet has same Metrics Table for All, Production, Non Prod, No Field. From Team 1 Sheet to Team 9 Sheet same format.
In the Consolidated, it is the same Metrics Table and format, however i have put 2 drop down Validation Lists. Independent Drop Downs (INDIRECT is not required) or what if that is made as related field and display only when the other Drop down is selected. This looks like a good one. So i will go with the dependent dropdowns
Requirement is, when i select the Team from the Team Drop Down List, and based on the selection from the dependent drop down list that is (Environment) it should pull the data from the respective teams sheet.
Not sure what is the best approach to get this working. Tried vlooks but was not able to achieve.
Hope there is a alternative to get this working.
Regards
Ajay

Calculate Sum of occurrences in Excel

I currently have the following data set: >>> see first image for dataset and second image for expected outcome
This continues on for about 12 columns with Service_12 and has multiple rows for Company_id about 620,000 rows
I would like a way to find the interaction between services for a company
so i would like to create a table that looks something like this
Service_1 Service_2 Service_3
Service_1 (Amount of companies (Amount of companies (Amount comps
that used 1 that used that used
Service_1) service_1 and Service_2) service1 + sr3)
Service_2 (as above) (as above) (as above)
I would like this cross service to continue for all 12 services, so for example this is just the sum of the times a company has used both services,
Any ideas?
Thanks
I would like an aoutcome like the folloowing:
my dataset is the following:
Try to use this
=COUNTIFS(B2:B5,">0",C2:C5,">0")
this formula should give you how many companies used service 1 (column B) and service 2(column C) or
=SUMIFS(B2:B5,B2:B5,">0",C2:C5,">0")+SUMIFS(C2:C5,B2:B5,">0",C2:C5,">0")
if you want to know how many times the station were actually used.
I think a Pivot table would do this.
I would use a dynamic named range to capture your data if you intend to add companies more often:
https://support.microsoft.com/en-us/help/830287/how-to-create-a-dynamic-defined-range-in-an-excel-worksheet
If you put "Services" in the rows and columns, and Count(companies) in the values box that should do it!

Have VBA for Unique items in multicolumn range, how to filter multiple rows on previous results?

Intro
I'm trying to enhance a basic planning sheet (see below) with additional sorting.
The first column lists the resources. Each week has 2 columns representing 20 hours per column.
Example readout;
In week 30 Aron works 40h on project A. In week 31 he works 20h on project A and 20h on project B.
Jeff does not work in WK30 and works 40 on project C in WK31
My Goal
Generate a unique list of projects over the weeks
Be able to filter based on project name and get only the rows of the resources working on that project. (No specific need to filter out the other projects in the same row. So if I filter on project "A", I want to only see the rows of Aron and Dave)
What I have
Basically item 1 is covered as follows:
The 2nd column (Projects) is an array-formula generated by a VBA function (taken from here) that returns all unique items in a multi column range. The cell formula looks like this, where the second argument of UniqueItems() determines if we only return the number of unique items (TRUE) or a list of all unique values (FALSE).
=TRANSPOSE(UniqueItems($C$4:$H$6,FALSE))
What is missing
Item 2 of my goal list is missing. If I currently select the filter option for Projects (see screenshot)
and filter on Project A, then I only get row 5 and not also row 4.
How would I go about filtering this properly?
VBA code is allowed or pointers to which regular formula functions I should use. A complete different solution with the same results is also fine. I thought about pivot tables, but I think it cannot handle empty cells around the range which is common if there's no work for that resource.
The sheet used can be downloaded from here
IMHO, you will be much better off creating a worksheet serving as a normalized database table with one row per the following columns: person, week, project. Lastly, a final column for the number of hours (and optionally, a cost for those hours customized per worker as needed)
Then use a pivot table to build the view you posted (or any other reporting view you need).
This will let you create multiple pivot tables that easily answer questions like:
how many hours are planned for project X in total? by a certain date?
how many total hours are planned for each worker per time period - who is over/under utilized?
how many total hours are planned for each worker per project?
etc.
Keeping the data separate from the reports is safer, and more modular - I wouldn't want a VBA bug to have the potential of corrupting/deleting raw data.

Excel match multiple columns simultaneously

I need some help with an excel formula. I have 2 tables as on the screenshot below:
The first table "AD Groups & apps" contains all the required AD groups for one application to work. Now I need to match all applications from the second table "Users AD Groups" to the first table and have a result table as the third one "Users Apps".
I need to automate as some applications are dependend on one group, other apps on 2 or 3 AD groups (group names are exactly like the ones on the screenshot - not really userfriendly)
Few assumptions:
On the 2nd table there could be groups not related to the required apps
The result table needs to show only application names where all pre-reqs are available
Tried messing with vlookups and index/match but got lost somewhere.
If its not asking too much, any tips on changing the same to show apps where user is member of the first column group, but is missing groups from 2nd/3rd column?
This is not easy to accomplish with a single formula....but you can use this version in H4 confirmed with CTRL+SHIFT+ENTER and copied down the column
=IFERROR(INDEX(D:D,SMALL(IF(FREQUENCY(IF(ISNUMBER(MATCH(A$4:C$11,F$4:F$11,0))+(A$4:C$11=""),ROW(F$4:F$11)),ROW(F$4:F$11))=3,ROW(F$4:F$11)),ROWS(H$4:H4))),"")
That should give you all the D4:D11 values where all specified group values are shown
for a single group that would be easier, e.g. for those where Group 1 only needs to be checked try this version
=IFERROR(INDEX(D:D,SMALL(IF(ISNUMBER(MATCH(A$4:A$11,F$4:F$11,0)),ROW(F$4:F$11)),ROWS(H$4:H4))),"")

Get the average monthly value from 2 SP List columns and display in new column

I need to calculate the average value for each month. Currently I have 2 columns "DATE" (date value e.g 01/01/2010) and AccOpen (number value). So for all dates within January I need to return the average value of all numbers contained in the corresponding AccOpen rows for January dates.
Is it possible to use the CALCULATED option and input a FORMULA that will return the average for all itmes within each months period (when adding a column to the list ?
DATE ACCOPEN AVERAGE
01/01/2010 2 2
02/01/2010 2
03/01/2010 2
04/01/2010 2
01/02/2010 2 2
02/02/2010 2
03/02/2010 2
04/02/2010 2
You're not going to be able to do this OOTB without writing event receiver code (or other custom code running in a batch mode).
To get you started
MSDN - How to: Create an Event Handler Feature
Event Handlers : Everything you need to know...
This will need to hook into the list item update and then consolidate your list into a separate summary list with the calculations you need.
The brute force approach would be to run the calculation afresh for every item in the group when an item is inserted/updated.
A smarter approach would be to just update the delta (the difference between the old and the new record) which is easier to do if you store components of the calculation - so in your case
Month - NumRecords - TotalValue
and work out the Average on the fly (as its easy to delta the NumRecords/TotalValue but impossible to apply it directly to the average)
One 3rd party web part which may fit your need is PivotPoint - it allows you to do things like sum/count/avg over groups like Month & Year (disclaimer - I work for the company)
It is not possible to query anything other than the current item when creating a formula field.
The only way to do this is to create custom code either within an event handler for the list or external code that processes items in the list and updates a "average" field when required.
Create a calculated field to give you the year and month, for example: 2011-07. Then modify your list view to group on the calculated field. When editing your view, there is also an option to display totals, I believe you can set this to average for your AccOpen column. If you're not interested in the details, you can choose to collapse all groups by default.

Resources