I currently have a cross table that I have built that contains quite a few aggregations (using custom expressions) broken down by names on the vertical. Upon clicking on a cell I would like to show the details behind that data point. However, when clicking in the cross table it automatically selects the entire row and this shows all of the details behind that row, which is not what I want. Is there any way to setup a cross table so that you can click on a single cell (sort of like you'd have the ability to do in Excel)? The only solution I can think of would be to build multiple cross tables with single calculations, so that when clicked it will show the detail data behind that single value.
Thanks so much for the help and possible solutions!
You can write your custom expressions with an if statement - sum(if([name]='a',1,null)) write one for each name on your vertical then remove the vertical break down leaving only the expressions that have each category already split. this way you can select a single cell value. this method does require a lot more expression in your cross table.
Related
I´m currently working with a huge epidemiological dataset with several Excel-files. The files contain pathology and clinical report for almost 30k patients. Each patient can have several pathology and clinical reports. The patients are assigned an unique ID.
I want combine all files into one so that ID for patient X001 would contain all the information form all the files. I cannot just copy/paste because the number of rows (IDs) in the files vary.
Here is an example of what I want to accomplish.
I want to combine two lists as follows.
As you can see that List1 and List 2 vary in row numbers. Also there are IDs in list1 that are not found in list2 and vice versa.
I want to merge them so that they align and match, see image below. Can someone provide a code for this? I cannot do this manually since I have 100k rows in list1 and 30k rows in list2...that would take several weeks to do with a risk of errors.
You can merge tables combined utilizing Excels built in Power Query, which can be found under the Data tab.
Note: Photos are taken from Excel 2016
The first step is to create the queries:
Within the Get & Transform section under the Data click on New Query -> From File -> From Workbook and select the appropriate workbook that has the table you want to merge
Select the appropriate sheets in which your tables are found, and confirm that they are displaying properly
If you notice that the table is not correct, you can make changes to it via the Edit button below.
For example, if you notice that your Column headers are being treated as a normal value, you can click Use First Row as Headers under the Power Query Editor Home -> Transform
I would also recommend changing the name of the query so it makes more sense down the line
Once you are happy with the way the query is looking, click on the Close and Load Dropdown menu under the Power Query Editor Home and select Close and Load To...
Select Only Create Connection to add it into your Workbook Queries without duplicating the table.
Repeat the above steps for each table in which you are looking to merge.
Once you have all of your tables linked via Queries, you can now move on to merging them:
Under the same section of New Query select Combine Queries -> Merge
Select the two queries you are looking to merge in each of the respective boxes
Confirm that they are correct via the preview window (don't worry if not all rows show)
Rule of thumb would also be to select your largest query first, and the smaller second
Next, highlight the columns in which you are looking to merge based on. For your example it would be the ID. This is done simply by clicking on the column within the preview
Finally change the Join Kind to Full Outer and click OK
From here you should be back in the Power Query Editor
The final steps are modifying this merged query to your desired output
You should notice that there is a new column added next to your first original table with the name of the query at the top, next to the name is a button that allows you to expand out this query.
Select the appropriate columns you would like to merge into the other table and click OK
If at any point you make a mistake, you can retrace your changes under Applied Steps within the Query Settings Pane
Once you are happy with the way your newly merged query looks, go ahead and click on Close and Load
Your should now have access to your new merged query that will update based on changes made to the original connected files
If you want to make any additional changes going forward from this point just click anywhere inside of the table and you should see both the Table Tools and Query Tools tabs appear at the top
I am wondering if there is a way to paste a list of values (e.g. well ids) into the Spotfire Analyst's (and Web Player's) filter search box? I am new to Spotfire so not sure if that can be achieved through a custom extension or script. Basically this is what I am trying to achieve:
I copy some values from Excel spreadsheet
I open Spotfire Analyst and look for the appropriate filter on the right
I pates the content of my clipboard into the filter’s search box
Custom logic (if that’s possible?) makes sure to find the appropriate results from the filter’s list and selects them automatically
All charts on our page are updated and we see the results from step 4
Please note that the solution needs to work on both the Spotfire Analyst and Web Player.
We work around this by using multi-line input text boxes. Once a user pastes in a multi-line set of text values (separated by space, comma, new line, or whatever) this string is passed to a data function, which creates a table and writes that back out. Then the two tables are related on a common key, which acts as a filter for the original table.
PasteAPIListTable <- data.frame(API = unlist(strsplit(PasteAPIList,PasteAPISeparator)))
I want to count how many times a particular value appears with respect to value in another column. ( Apologies, as i am struggling to put it in words properly. Maybe that's why I couldn't google it)
I am using spotfire and actual data set is quite big.
As per my dummy data - i want 5 more columns - a,b,c,d,e which will give me counts like table - 'what I want'
Please if someone can help.
Thanks,
AP
what you're looking for is called a Pivot Table. it doesn't look quite like what you've got in your example, and because you haven't provided a lot of information about what you're trying to do in the end, I'm working under the assumption it's just a quick example you put together? if that's not the case, please clarify your question with your end goal and I'll update my answer.
to create a Pivot Table in Spotfire:
click the Insert menu at the top of the screen
choose Transformation...
in the Insert Transformation dialog that appears, choose your data table from the top dropdown, and choose Pivot from the bottom one, then click Add...
configure the pivot like I've done in the screenshot below
click OK and confirm the Insert Transformation dialog
I have got two adjacent tables. When I apply data filter on first table, it filters the whole row hiding rows from 2nd table as well. How do I restrict filter to only the first table range?
To answer your direct question How do I restrict filter to only the first table range? the answer is - you can't.
Reading the comments it seems what you need is to display the filtered table data next to a chart and another table. There is a little know tool in Excel that you can use to achieve this - the Camera Tool. With this you can create a dynamic image of a range and place it where you want. The image updates when a filter is applied to the source range, without affecting the rows on the Dashboard sheet.
Screenshots to demonstrate:
Setup with tables on seperate sheets, and camera images beside chart on dashboard sheet
With Filter applied to Table A
The Camera tool is not on the Ribbon (Excel 2010) or the standard toolbars (Excel 2003). You need to add it using Customisation. (Add to Qucik Access Toolbar in 2010 or Tools/Customisation Menu in 2003)
Unfortunately you won't be able to do that. When you filter, it filters the entire row (something to think about would be how the row number would display if that weren't the case). You will need to restructure your setup if you wish to prevent that (not sure of your particular use case, so sorry I can't give a more specific suggestion).
I had a similar issue, where i had a table I wanted to remain static - like a key, but wanted to filter the main table.
To get around this, I copied the static table, and pasted it as an image. This way, when you filter on the main table, the image remains where you have put it.
A simple workaround for this general issue that others may have mentioned (but I don't see here):
You can't filter just a range (e.g. a few columns in a spreadsheet), but you can sort just a range. And by sorting the range, then deleting some blocks of unwanted cells in the range, then sorting the range back to the original order, you can fake a filter.
A bit clunky, but easy for some jobs if you're careful.
There is a need to create custom formatting for an indented Financial Statement with subtotals. This is not out of the box Power BI functionality and to reach a solution, the inherent aggregation and drill down functionality has been stripped from that visualization through the use of a "template" table to create indentions and subtotals. This is connected to the fact table through a "virtual" connection via a switch function. The formatting is as needed but there is still a need for drill downs.
A proposed solution I’ve been explored is to use an if condition for when one row is selected. When a single row is selected it would then show different dimensions and measures for the given chart, mimicking a drill down. I'm trying to use an isfiltered condition to create this action but I've had no success thus far. I’m still trying to determine what function would provide that functionality or if there are better options.