Changing the search rule on Tibco Spotfire for column search - spotfire

I was wondering if there is a way to change the search rule?
I am working on Tibco Spotfire and Tibco Clarity shows that you can change the rule to incorporate regex.
I have three part numbers that are the same, with the only difference is an added prefix to the part number to identify the unique customers.
I want to change the filter rules such that I don't have to add a regex * to the prefix to bring up all three when I'm using the filter.

Related

Multi LookUp - Check for unique values

I´m trying to set up unique values in my PowerApp-Form. The data is stored in a Sharepoint list. I have a column called watches, items in this column have a unique number, which have to be unique. People can pick multiple of those watches in a LookUp-field. But before submitting the form, I need to check if those picked values already exist in my list and at least display an error message.
I have setup a regular text field and added following rule to it:
If(LookUp(MyList.Watches;DataCardValue4.SelectedItems.Value in Watches;"OK")<>"OK";"No Error";"Watch already exist")
DataCardValue4 is my LookUp field, where people can pick those watches. With this rule I want to check if a item already is in my column watches and let my text field display the error. Somehow the rule doesn´t work.
Can you tell me how I compare multiple lookup choices to my table/column entries?
The first parameter to the LookUp function should be the table (SharePoint list) rather than the column. So the first parameter should be 'MyList' rather than 'MyList.Watches'. Also, I'm not sure that the formula provided (second parameter to LookUp) will work. In your formula, you will be looking for multiple items (DataCardValue4.SelectedItems.Value) within multiple items (Watches). Perhaps you can update your app to have users only pick one watch value before submitting?
One last thing to note. I'm not sure how big you expect your SharePoint list to get, but I would highly recommend keeping your LookUp formula within the bounds to support delegation. More specifically, SharePoint has different formula requirements than other connectors. For example, you can use '=' in your formula, but not 'in'.
Your new rule might look something like below. Please note that it could have syntax errors and might not even be delegable in it's current form since I am providing the rule with no checking. Also, I switched from using LookUp to using Filter instead just because I'm more familiar with Filter. However, both functions are very similar.
If(CountRows(Filter(MyList; DataCardValue4.Selected.Value = Watches)) > 0; "Watch already exist"; "No Error")

Column to rows and highlight difference between values in the same group

I have a huge table with data structured like this:
And I would like to display them in Spotfire Analyst 7.11 as follows:
Basically I need to display the columns that contain "ANTE" below the others in order to make a comparison. Values that have variations for the same ID must be highlighted.
I also have the fields "START_DATE_ANTE" and "END_DATE_ANTE" which have been omitted in the example image.
Amusingly, if you were limited to just what the title asks, this would be a very simple answer.
If you wanted this in a table where the rows are displayed as usual, and the cells are highlighted, you can do this by going to properties, adding a newGrouping where you select VAL_1 and VAL_1_ANTE and add a Rule, Rule type "Boolean expression", where the value is:
[VAL_1] - [VAL_1_ANTE] <> 0
This will highlight the affected cells, which you can place next to each other. You can even throw in a calculated column showing the difference between the two columns, and slap it on right next to it. This gives you the further option to filter down to only showing rows with discrepancies, or sorting by these values.
However, if you actually need it to display the POSTs on different lines from the ANTEs, as formatted above, things get a little tricky.
My personal preference would be to pivot (split/union/etc) the data before pulling it in to Spotfire, with an indicator flag on "is this different", yes/no. However, I know a lot of Spotfire users either aren't using a database or don't have leeway to perform the SQL themselves.
In fact, if you try to do it in Spotfire using custom expressions alone, it becomes so tricky, I'm not sure how to answer it right off. I'm inclined to think you should be able to do it in a cross table, using Subsets, but I haven't figured out a way to identify which subset you're in while inside the custom expressions.
Other options include generating a table using IronPython, if you're up to that.

microsoft search using multiple criteria (wildcards, exclusions, etc.)

I am using a Microsoft DB application (AXAPTA) that lets us search various fields by typing criteria at the tops of the table. An example would be to filter item numbers to those starting with a 2 by typing 2* or excluding items with bell in the description by typing !bell. Quotes are not normally needed. We often combine multiple criteria by separating them with a "," For example, 2*,9* where the "," acts as an OR. Unfortunately, I cannot figure out how to create a multiple criteria AND. What I am trying to do is exclude items that have DNU in the description AND also have bell in the description.
My thought would be
!DNU & bell
but that doesn't work. Any ideas? I am sure this is simple, but I am stuck.
You need to use the advanced SQL query syntax, which can also be put in the filter location.
You'll have to play with it a while to get exactly what you want, but see these links below. You'll probably need to use a combination of info from the different links:
https://technet.microsoft.com/en-us/library/aa569937.aspx
http://www.axaptapedia.com/Expressions_in_query_ranges
https://msdn.microsoft.com/en-us/library/aa893981.aspx
https://learn.microsoft.com/en-us/dynamics365/unified-operations/fin-and-ops/get-started/advanced-filtering-query-options

Excel Advance Filter not working

I have a sheet in which there is a column which mentions some tags.Now i am try to follow the advance filtering to see the data for 2 or 3 tags only but it's not working for me.
I have create a sample excel sheet in which i have taken S.no and Name. In that sheet I am able to apply the filter.I am not able to understand why it's not working in my sheet.
As per the snapshot i want to filter data for 2 tags <NbOfTxs> <CreDtTm>.Please check if anybody can help.
Thanks,
Advanced filter in Excel has the hidden ability of regex (regular expression).
Your data just happened to have some special characters used in regex, i.e "<"
So when you want to filter for <NbOfTxs>, I think Advanced Filter will interpret this as "return all entries that larger than <NbOfTxs> meaning anything would come after <NbOfTxs> in the dictionary, for example: <Pst>, <NcOfTxs>, etc.
I don't know the reasons why you want to use Advanced Filter but maybe you can do normal filter or pivot if it still helps achieve your ultimate goal.
Similar question here:
Advanced Filter criteria does not work for more than one criterion
You can read more on this feature of Advanced Filter here (from above question):
http://searchengineland.com/advanced-filters-excels-amazing-alternative-to-regex-143680

Dates search in Drupal (greater than, less than) using CCK / views / facelet?

I'm working in a site that manage events (like parties). Each event could have several fields, including date, that the user could add thanks to CCK module.
Now, the problem is when I have to search using those fields.
I could not find how to search for events between a range of dates.
I discover the facelet module, which is pretty good, and it is very useful for some kind of search, but as far as I can see it is not possible search in a range.
Also I do some testing using views, but again, with no results. I can not find how to search a date "greater than" and "less than".
I will really appreciate any help.
I answered this a few days ago:
Drupal Views how to filter items overlapping a date range
The Date module will provide new Filters in your View that are date based. You then tell Views to use a start and end date that is +/- your target date. You could also expose this field, and it will show two fields for picking dates and use those as filters.

Resources