Find Size / Length of text in SharePoint Workflow 2013 - sharepoint

How to find size / length / number of characters in a text based column through SharePoint Designer Workflow?

An easy way: you can create a calculated column in your list and use the following formula to find the length of your column(Title):
=LEN([Title])
Then you use the calculated column in your workflow based on your requirement.

Related

COUNTIF in Microsoft list

I want to make an asset manager in Microsoft List via Sharepoint. The list should define a serial number to every item like this:
The challenge is that a running number should be the last charachter of serial number which counts the items in the same category/subcategory.
In Excel with CountIf function it is easy to do. But in MS Lists or with Power Automate I did not find the solution.
Do You have any idea?
Thank You
I need a category dependent running number when I define a new item in list.
You should look at using Office Scripts through PowerAutomate ...
https://learn.microsoft.com/en-us/office/dev/scripts/overview/excel
... from here, you can write a script that performs the COUNTIF against the relevant dataset.
Note: My answer assumes that you have the correct licence to do so.

Cognos 11.1.7 asterisk appearing in a calculated field. How do I tell Cognos not to show the asterisk?

I have a calculated field in a crosstab formatted as a percent with 1 decimal place
The calculation works fine
The results however show an asterisk (after the percent sign) even when exported to Excel
What I have found on some web searches is Cognos shows an asterisk when the unit of measure is unknown. Not sure if this applies to what I am doing with Cognos
The calculation is B divided by A
I solved the (annoying) issue (in a crosstab column) by:
Define content of the Crosstab intersection: yes
Unlock report
Drag and drop in the cell a Text Box
Change the textbox Source Type to Report Expression
Insert the calculation as a Report Expression instead of a query calculation
I found an answer, set the format to custom and enter the data pattern
For example,
##0.0%

Sharepoint Calculated Column - LEFT()

I am trying to find the substring of the start time (I just want the date) field using a calculated column in SharePoint 2010 on a date/time field.
I am using the =LEFT() command (please see attached images)
As you can see the formula validates but doesn't show the correct output
Please note I am restricted to out of the box SharePoint only, SharePoint designer has been disabled and this being a Calendar List, infopath is out of the question.
LEFT function is doing a substring on SharePoint's internal representation of the date, which is a number.
To get just the date, you can simply have your fomula as: =[Start Time] and set the Date and Time Format to Date Only.

Filtering a view in SharePoint list based on a year

I'm using SharePoint 2010.
I want to create new view for my list. The list contains a column called Year, which is a number and contains, as name suggests, year. Eg.:
2012
2011
2010
2009
I would like create a view, where I would display only last 3 years. Under creating new view, I go to Filter, choose Show items only when the following is true:, pick column Year and... this is where I get lost.
How to write a condition, that a number should be greater that current year minus 3? I tried
[Year]-3
but this obviously couldn't be so simple. Please help me write this condition.
[Today] returns the current date so you can use the following formula:
[Year] > YEAR([Today])-3

Can I get relational data into an Excel Pivot Table

I have a sheet (let's go with wines as an example) that lists every bottle of wine in my cellar, when I bought it, how much I paid etc.
There's a column that describes the wine in comma-separated tags such as "Fruity, White".
I've created a pivot table from that data, with the description as a filter column. However I can't filter it by "White". I have to find every description that contains "White" such as "Dry, White", "White, Crisp" etc.
Being from an RDBMS background, my natural inclination is to put the tags in their own table keyed against the wine row so there's zero-or-more tag rows per wine row.
How, how on earth can I use that to filter the wine rows?
Yes you can do it within Excel and the description fields can remain as "Dry, White" etc as you do not need to split the comma separated values.
Lets say the Table source comprises a text column for Description, a number column for Value and a number column for Year Bought.
Your pivot is setup with the the following
Fields: Description, Value and Year Bought.
Column labels: Year Bought
Row Labels: Description
Sum of values: Sum of Value
There is a drop down label filter on the row labels - click on this and there should be an option to select Label Filters. Select this and then select Contains. You can enter say "White" which will select all your descriptions that contain white e.g. "Dry, White", "White, Crisp". The filter includes ? to represent a single character and * to represent any series of characters.
There are similar label filters for "begins with" and "ends with" as well as there negation.
I tried this in Excel 2007 and it should also work in 2003. I think in Excel 2003 you could even combine the filters e.g. contains "White" and does not contain "Dry" but in 2007 I could not find a way of doing this.
Forgive me if I'm stating the obvious, but the reason you're having problems here is that the description column is not in 1NF, and the Excel pivot interface isn't flexible enough to allow pattern-based searching.
The simplest option will be to normalise the CSV into a series of columns, each of which represents a single attribute - one column for wine colour, one for sweetness, one for country of origin and so on - and apply the filter across multiple columns. However, if (as your comment on the question suggests) wine is a metaphor for your real problem, you may not have the luxury of revisiting the design of the source data.
Another possibility might be to use a macro (or a database query - I'm not clear from your question whether you have implemented the tag system already) to pre-filter the input data on the pivot table's source sheet based on the tag values you want to search for, then re-refresh the pivot table based on that data.
A third possibility is the VBA used in this question, which looks like it will custom-filter the pivot table's visible rows.
=IF(ISERR(FIND("WHITE",UPPER(B5))),0,1)
create an extra column and add a formula. There are 2 tricks to this. One is to search for WHITE in the description column using upper - to beat the fact that excel find is case sensitive. Two is that it returns a value error if the string does not exist - so iserr will allow you to trap that and return in this example 0 if it doesn't or 1 if it does. You could substitute white and blank for 1 and 0.
you could write a script that loops through the data and adds new lines for each comma separated item in the description column. This would allow the pivot table to filter better.

Resources