How do I filter a SharePoint list on blanks?

I have a large SharePoint list and want to create a view the shows only rows where a particular column is blank.  I know there are some special values like [Today] and [Me].  Is there one for [Blank] or [Null]?  How can this be done?

Hi ChrisHoll,
Is the column you use to filter the view a multiple lines of text type?
Please Convert it to XSLT Data View in SPD then Filter option (Select the column name IsNull) could be set in Common Data View Tasks.
For detail please check out this similar thread.
http://social.technet.microsoft.com/Forums/en/sharepointadmin/thread/77e37df7-0286-4a30-8b67-03317eff63b7
Thanks.
Best regards. Emir

Similar Messages

  • How can I filter a Sharepoint 2007 libarry list based on current user login?

    Hi all.
    I would like to know how I can filter a SharePoint library list based on current user login.
    Suppose I have created the followings:
    1) A SharePoint form library containing bunch of uploaded InfoPath form data.
    2) The InfoPath form template contains a promoted text field called "TargetUser" to store user domain login (ex: DOMAIN\JOE) and every InfoPath form file in the library has a valid domain name stored in the "TargetUser" field.
    I have created a custom view for the form library and would like to filter this view so only items whose "TargetUser" field matches current user's login ID are displayed.
    I went to Edit View page to customize the view and tried to use the [Me] function but I got a "Filter value is not a valid text string" message instead when clicking OK. Apparently [Me] returns a Person/Group data type and the filter cannot compare its value
    to that of "TargetUser".
    I tried using text functions (ex: TEXT([Me],"") hoping to extract default string value from [Me]. The filter accepts the parameter without any error but the resulting fitlered list does not display any items at all.
    I have googled this subject for hours but I have not found any solution.
    It would be greatly appreciated if anyone can help me to create a functional filtered list.
    FYI, my SharePoint 2007 installation is just WSS 3.0 + Form Server. I do not have MOSS 2007 (so no MOSS 2007 web parts or web services).
    Thank you.
    Jason

    Here's what I usually do in order to accomplish this.  Ultimately you'll need to have 2 different fields.  There's the one you already have, with DOMAIN\username stored in it.  Then you'll need an additional field as a "person" column type. 
    Call it "TargetPerson" or something.
    Create a sharepoint designer workflow that runs each time an item is created or changed.  One action:
    Set FIELD to VALUE.
    The first FIELD is "TargetPerson", the VALUE is your "TargetUser" field. 
    Once this is done, then the person value is stored in the person field.  This is the field that you can filter by "TargetPerson" is equal to [Me]
    Laura Rogers, MCSE, MCTS
    SharePoint911: SharePoint Consulting
    Blog: http://www.sharepoint911.com/blogs/laura
    Twitter: WonderLaura

  • How to filter a sharepoint list with report parameters

    Hello there,
    I'm trying to make a sql report on a sharepoint library. I have no problems to connect to the library but i cannot find a way to filter my data source with report parameters. I've searched on the net a lot, found some stuffs about xml but nothing that shows
    how to do it with sharepoint. Any help would be greatly appreciated!
    Thanks in advance!

    Hi mgarant,
    As you mentioned, by default, we can use xml parameter "query" to filter a SharePoint list from SQL Server Reporting Services. We can also modify the value for the "query" to use SQL Server Reporting Serivces parameters to filter the SharePoint list.
    Below are the detailed steps for your reference:
     1.Change the query string to be a string like this:
    <Query>
    <SoapAction>http://schemas.microsoft.com/sharepoint/soap/GetListItems</SoapAction>
    <Method Namespace="http://schemas.microsoft.com/sharepoint/soap/" Name="GetListItems">
    <Parameters>
    <Parameter Name="listName">
    <DefaultValue>{ADBE55DB-63A1-4C14-9DA0-B1B05C13B4C8}</DefaultValue>
    </Parameter>
    <Parameter Name="query" Type="xml">
    </Parameter>
    </Parameters>
    </Method>
    <ElementPath IgnoreNamespaces="true">*</ElementPath>
    </Query>
     2.In the dataset modification dialog, go to "Parameters" tab.
     3.Create a Report Parameter(e.g. CityParam).
     4.In parameter tab, create a parameter with:
    Name: query
    Value: ="<Query>
       <Where>
          <Eq>
             <FieldRef Name='WorkCity' />
             <Value Type='Text'>" & Parameters!CityParam.Value & "</Value>
          </Eq>
       </Where>
    </Query>"
    Please note, “case sensitive” is required. In this case, the parameter name for "query" must be in lower case. WorkCity is name of a field in the SharePoint list.
    For more information about how to retrieve value from SharePoint list, I would suggest you reading the following article and threads:
    http://vspug.com/dwise/2007/11/28/connecting-sql-reporting-services-to-a-sharepoint-list-redux/
    http://blogs.msdn.com/mariae/archive/2007/12/13/querying-sharepoint-list-from-reporting-services-returns-only-not-null-columns.aspx
    I also implemented a sample, you could download it from:
    http://cid-3c7e963ff6ccd974.office.live.com/browse.aspx/.Public/SharePoint%20List%20sample?uc=2
    Please feel free to ask, if you have any more questions.
    Thanks,
    Jin Chen
    Jin Chen - MSFT

  • How to Enable Ratings on SharePoint List using Client Object Model for Office 365 SharePoint Site.

    How to Enable Ratings on SharePoint List using Client Object Model code for Office 365 SharePoint Site.
    Thanks in Advance
    Rajendra K

    Hi Rajendra,
    here you are the code and the blog, let me know if this helps
    using (ClientContext ctx = new ClientContext(https://yourSiteUrl))
    Web w = ctx.Web;
    List l = w.Lists.GetByTitle("yourListName");
    ctx.Load(l, info => info.Id);
    ctx.ExecuteQuery();
    string ListID = l.Id.ToString();
    Microsoft.Office.Server.ReputationModel.Reputation.SetRating(ctx, ListID, 1, 5);
    ctx.ExecuteQuery();
    http://blogs.technet.com/b/speschka/archive/2013/07/08/how-to-use-csom-with-ratings-in-sharepoint-2013.aspx
    Kind Regards, John Naguib Technical Consultant/Architect MCITP, MCPD, MCTS, MCT, TOGAF 9 Foundation

  • How do I query a SharePoint List using a url and filtering on date?

    I am reading a SharePoint list using jquery.  Everything is working fine
    except for the filter.  Each list item has an expiration date.  I want to retrieve JUST the items that have not expired (Expires > Today) but I can't figure out the url syntax and I've been searching all day for an example and
    can't find one.  Could someone please help?!?  See bold code below.
    Thanks,
    Glen
    $(document).ready(function ()
    <strong>var qryWCFUrl = "/sites/MMTP1/_vti_bin/listdata.svc/MMAlerts?$filter=(Expires gt '08/10/2011')&$orderby=Title";
    </strong> $.getJSON(qryWCFUrl, function (results)
    $.each(results.d.results, function (i, mmAlert)
    itemID = mmAlert.Id;
    mmTitle = mmAlert.Title;
    mmClass = mmAlert.ClassValue;
    //alert("Item="+itemID+" Title="+mmTitle+" Class="+mmClass);
    AddMMStatus(mmAlert.Id,mmAlert.Title,mmAlert.ClassValue);

    Fadi,
    Thanks for your response.  I actually have another version of the code that uses the SP client objects that works.  The problem is site boundries.  Let me give a more complete project explanation.
    I am creating a master page for a new intranet.  As part of this master page, I want to read from an SP list of alerts and post each alert (if not expired) in the SP status bar.  I've gotten this to work with SP client objects and jquery (except
    for the date filter part).  Both of these solutions work fine on the top site level.  BUT when trying it out at the sub-site level, the SP client objects version of my code fails. The jQuery version works except the date filtering.
    I looked at the example from your link and it looks like a bit of a hybrid to my approaches:  JQuery with CAML.  My question is; does this example permit me to access a list in the top-level site from the subsites?  Please excuse my ignorance,
    but I am an EXTREME newbie in this having spent the past 8 years as a VB.Net developer and a little bit of ASP.Net.
    Below are the two different versions of my code in different versions of my master page definition:
    SP Client Object Version
    <script type="text/javascript">
    // <![CDATA[
    ExecuteOrDelayUntilScriptLoaded(LoadAlerts, "sp.js");
    var ctx;
    var currAlerts;
    function LoadAlerts() {
    ctx = new SP.ClientContext.get_current();
    list = ctx.get_web().get_lists('/sites/MMTP1/Lists/').getByTitle('MMAlerts');
    var cmlQry = new SP.CamlQuery();
    var camlExp = '<query><Query><Where><Gt><FieldRef Name="Expires" /><Value IncludeTimeValue="FALSE" Type="DateTime"><Today /></Value></Gt></Where></Query></query>';
    cmlQry.set_viewXml(camlExp);
    currAlerts = list.getItems(cmlQry);
    ctx.load(currAlerts,'Include(ID,Title,Class)');
    ctx.executeQueryAsync(GetAlertsSuccess,GetAlertsFailed);
    function GetAlertsSuccess() {
    var lstEnum = currAlerts.getEnumerator();
    while(lstEnum.moveNext()) {
    var mmAlert = lstEnum.get_current();
    AddMMStatus(mmAlert.get_item('ID'),mmAlert.get_item('Title'),mmAlert.get_item('Class'));
    function GetAlertsFailed(sender,args) {
    alert('Alerts load failed: ' + args.tostring);
    function AddMMStatus(msgID, strTitle, strClass) {
    var statID;
    var statClass;
    var statTitle;
    statClass = "<a href=\"#\" onclick=\"javascript:DisplayAlert("+msgID+");\">" + strClass + ": </a>";
    statTitle = "<a href=\"#\" onclick=\"javascript:DisplayAlert("+msgID+");\">" + strTitle + "</a>";
    statID = SP.UI.Status.addStatus(statClass, statTitle, true);
    SP.UI.Status.setStatusPriColor(statID,"red");
    function DisplayAlert(msgID) {
    var options = {
    title: "Miller & Martin Alert!",
    url: "/sites/MMTP1/SitePages/ShowAlert02.aspx?ID="+msgID,
    allowMaximize: false,
    showClose: true
    SP.UI.ModalDialog.showModalDialog(options);
    // ]]>
    </script>
    JQuery Version (works except for filtering by date)
    <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js"></script>
    <script type="text/javascript" >
    // <![CDATA[
    var itemID;
    var mmTitle;
    var mmClass;
    $(document).ready(function ()
    var qryWCFUrl = "/sites/MMTP1/_vti_bin/listdata.svc/MMAlerts?$filter=(Expires gt '08/10/2011')&$orderby=Title";
    $.getJSON(qryWCFUrl, function (results)
    $.each(results.d.results, function (i, mmAlert)
    itemID = mmAlert.Id;
    mmTitle = mmAlert.Title;
    mmClass = mmAlert.ClassValue;
    AddMMStatus(mmAlert.Id,mmAlert.Title,mmAlert.ClassValue);
    function AddMMStatus(msgID, strTitle, strClass, strSeverity) {
    var statID;
    var statClass;
    var statTitle;
    statClass = "<div id=\"mmAlertTitle\" style=\"display:inline-block;\"><a href=\"#\" onclick=\"javascript:DisplayAlert("+msgID+");\">" + strClass + ": </a></div>";
    statTitle = "<div id=\"mmAlertDetail\" style=\"display:inline-block;\"><a href=\"#\" onclick=\"javascript:DisplayAlert("+msgID+");\">" + strTitle + "</a></div>";
    statID = SP.UI.Status.addStatus(statClass, statTitle, true);
    SP.UI.Status.setStatusPriColor(statID,"green");
    function DisplayAlert(msgID) {
    var options = {
    title: "Miller & Martin Alert!",
    url: "/sites/MMTP1/SitePages/ShowAlert02.aspx?ID="+msgID,
    allowMaximize: false,
    showClose: true
    SP.UI.ModalDialog.showModalDialog(options);
    // ]]>
    </script>

  • How to read data from SharePoint list and append to html table?

    Hi All,
    I would like to create custom view of SharePoint list, so want to append those sharepoint list  items in a custom html table design using content editor webpart.
    How to achieve this? thanks in advance!

    Content edit web part is not the right control. You can either Content Query Web Part
    or Data view web part, where you need to modify xslt template using
    SharePoint Designer and can render list data as per choice.
    For Content Query Web Part:
    Using the Content Query Web Part
    Customizing the Content Query Web Part and Item Style
    How to Customize SharePoint List Content Display using Content Query Web Part
    For Data View Web Parts
    Working with Data view Web Parts
    Adnan Amin MCT, SharePoint Architect | If you find this post useful kindly please mark it as an answer.

  • How do I Create a SharePoint List with two Attachment fields

    Hi Everyone
    I am using SharePoint 2013 Enterprise and Visual Studio 2013.
    I need to create a SharePoint list that has two fields of attachment type.
    Possible is a list supports this functionality natively?
    Tanks in advance.
    Eduardo

    Hi Muruguesa!
    When I customize the form in InfoPath Designer the following message appears:
    The publish operation Could Not Be completed. It can not be determined if the form template was successfully published. Try publishing the form template again, or change the settings to list
    Catastrophic failure
    I reported this error recently but not yet success in solving the problem:
    https://social.msdn.microsoft.com/Forums/office/en-US/687f2282-ad3d-4d13-a548-d25641b6b293/cannot-edit-form-in-infopath-when-list-was-created-in-visual-studio?forum=sharepointcustomization
     Do you have any ideas on how I can solve this case.
    PS: My list was created on Visual Sudio an Im using  SharePoint 2013 Enterprise and Visual Studio 2013.
    Thanks

  • How to show data from sharepoint list in mm dd yyyy format using Server Object Model

    In SharePoint 2010
    List "Employee", Colum Name "JoinDate" 
    has stored data in  (01/31/2014 12.00 PM) mm\dd\yyyy hr:mm PM format.
    How to display this data in mm\dd\yyyy only using C# on custom web part?

    //Write the code to read your list item
    SPListItem item = list.Items[0];
    //Get a DateTime object with the list column value
    DateTime date = Convert.ToDateTime(item["Date Column Name"]);
    String strDate = date.ToString("mm-dd-yyyy hh:mm tt");
    //you can also try ("dd/mmm/yyyy")
    http://sharepoint.stackexchange.com/questions/12820/safest-way-to-get-a-date-from-sharepoint-into-a-c-datetime-field-using-object

  • How to sort/filter tables and lists like in Excel?

    Hi.
    I used to keep track of my expenses in Excel and had a nice table or list (I forget what it's officially called) with a header row where when I clicked on the header of a particular column it would let me sort and filter- for example, I have a column called "category" and I could click on the header for that column and select a filter so that I only saw travel expenses and then the sum below would only reflect how much I spent on travel. I could also click on the "date" column header and "sort ascending" to put everything in chronological order. That was awesome.
    I got a new mac and thought I could keep updating and using this file in Numbers and wouldn't have to buy MS Office. But when I opened the file and saved it as a numbers file, I find that I've lost the ability to sort or filter. The cell at the bottom that has the SUM still works but the header row does nothing. I've seen some other threads about this but I don't really understand them so please forgive me if this is repetitive. Someone suggested hovering the cursor over a column header and a triangle pops up- that is not happening- I think that's in an old version of Numbers. How can I do those things I listed above- sort and filter my entire table? Right now I can only see the total sum of everything in the table but I often need to just add up one category of expenses.
    I don't really know all the math stuff, like formulas. My brain has trouble following that stuff. It was so simple in Excel. Is there anyway to get my header row back to how it was in Excel? If not, if you are able to guide me through some more complicated way to do it I would really appreciate it and I hope I can follow it.
    Thank you for your time.
    -Rebs

    I want to understand how to make the sum cell only show the total of visible rows...
    I don't think you can do that directly.  SUM will include hidden rows. But you can use SUMIF and SUMIFS.
    An example using SUMIF:
    An example using SUMIFS:
    Instead of putting SUMIF and SUMIFS in a separate summary table, you could also put them in Footer Rows of your data table.
    SG

  • How can I make the Sharepoint List Alert email format more readable?

    Hi,
    Been wrestling with the issue for a while now. I have a list on my company's Sharepoint site online. I have configured this list to send alerts every morning for all the new list entries that have come in the previous day. Unfortunately, the emails are very
    hard to read as they don't do a good job at all of distinguishing columns. There is no border or gradient separation between the data in one column vs. another in the email. This might have been OK, but the column headers appear in the middle of the text box
    for the column. I previously used an on-premises version of sharepoint and this wasn't an issue, the alerts would come out very clean. 
    Is the alert format a function of the theme we chose (basic theme, no gradient, etc.)? I can look into changing my company's theme if that is the case. If not, is there a way to change the format of a specific alert?
    Thank you for your help.

    I am afraid there is no way to change the alert format in SharePoint Online. The AlertTemplates.xml file is present in physical hive folder of SharePoint in Template\XML directory. And in SharePoint Online, you are not allowed to changes the physical file.
    Secondly, all of the styles related to alert are present in this file, so changing the theme on the site won't have any effect. In fact I did test it with several different themes just to make sure there isn't any change in run time and every time the format
    remained same.
    Thanks,
    Nadeem
    Please remember to up-vote or mark the reply as answer if you find it helpful.

  • How to update or check SharePoint List Variation Settings programatically or via powershell?

    Hi all
    I've got english and spanish variations created for my site collections.
    I need a script (C# or powershell) that lists all the document libraries and lists from a site collection telling me which list or doc lib has been "variated", and if it has whether the content sync option is on or off.
    I did a bit of digging and I know of the Relationship List in the root site and most of all is going behind it. So if there's no entry for a particular doc lib/list in there then I can safely assume that variations was not enabled for that list.
    Once I variate the list/doc lib there will be 2 entries in relationship list created (one with the source and one with the target). However if I turn off automatic sync under variations nothing happens to those entries so I can't have the script really look
    at those entries and tell me what I'm after.
    CreateVariation.aspx is the _layouts application page that has those settings displayed.
    Any ideas? 
    Thanks and happy new year!

    Hi,
    I found a link below which explains how we can track changes in variations even when automatic sync is off. It summarizes as below:
    In a property of the target peer page
    When a new version is variated to the target label the variation system preserves the previous value of the PreviousSpawnSourcePageVersion property of the list item in the target page.
    This property is changed by the ItemUpdated event receiver when the page is either approved or scheduled to go live in the future. The event receiver will then copy the value of the LastPropagateSourcePageVersion from the relationships list entry into this property.
    That means the LastPropagateSourcePageVersion column in the relationships list always contains the version of the source page which was last variated to the target while the PreviousSpawnSourcePageVersion property of the target page always contains the version of the source page which was last propagated for the currently approved version in the target.
    If both versions are the same, then the published version of the page in the target label is based on the last propagated source version.
    If both versions are different, then at least one update has been propagated from source to target since the last version was published in target.
    Reference
    Hope it helps!
    Thanks,
    Avni Bhatt
    If this helped you resolve your issue, please mark it Answered

  • How can I filter lockup 2 list

    Hello there .. 
    I have 3 list ..
    the first list is building list , the second one is apartment the last one is for reporting ... 
    I make a relationship between this 3 column by 2 lockup column 
    the first one which is the name of building the second one which is the name of apartment ..
    now in reporting list I want to make lockup column and chose the name of building, also I want  to add column of the names of apartment.. now I want the share point show the apartment that I add join it to their building ..
    thanks a lot ..

    Hi,
    From my understanding, you have three list: building, apartment, reporting. Firstly, you created a look up column in apartment referring to building list. Then, in reporting list,
    you create a look up column referring to building list and another look up column referring to apartment list. Now you would like the apartment column to be restricted certain ones per the building choice. If I misunderstand, please point it out.
    I’d recommend you configure cascading drop-down list using InfoPath per the link below:
    http://basquang.wordpress.com/2010/03/29/cascading-drop-down-list-in-sharepoint-2010-using-infopath-2010/
    Note: Microsoft is providing this information as a convenience to you. The sites are not controlled by Microsoft.
    Microsoft cannot make any representations regarding the quality, safety, or suitability of any software or information found there. Please make sure that you completely understand the risk before retrieving any suggestions from the above link.
    Regards,
    Rebecca Tu
    TechNet Community Support

  • How to create and handle sharepoint custom list with more than 300 columns?

    Hi,
    I have requirement for our project where in the input form is having around 320 columns in it.below are the columns and data types.
    Single line of text-180
    Yes or No Radio button -95
    Date time control-35
    Checkbox-10
    I have checked the sharepoint boundry and limits for columns and data types.
    https://technet.microsoft.com/en-us/library/cc262787.aspx
    But how can we handle a sharepoint list with these many large number columns.
    Is it safe to create all columns in a single list?
    How it will impact the performance?
    What is the other approach acheive this requirement?
    Any help would be appreciated.
    Regards,
    Poovi

    Hi,
    According to your description, my understanding is that you want to know if it has some performance issue and limitation when create large number column in a list.
    When creating columns in the list , you can still create all 320 columns in the list. But when retrieve the items in a view, then there is a list view threshold limit which causes the performance issue, see the link below:
    Sharepoint list column limit
    To handling the large number columns, I suggest you can distinguish the column with business logic to create in different list, it will be clear to display the logic relationship.
    Thanks
    Best Regards,
    Jerry Guo
    TechNet Community Support
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
    [email protected]

  • Filtering sharepoint list data using report parameters

    We are using xml to pull data from a custom sharepoint list into sql 2005. We have set a parameter that allows the user to filter the data by surname, however when the user tries to filter the list the drop down box brings up a list of every record, so there are duplicate entries for each surname.
    Is there a way of filtering this so that there is only one instance of the users surname instead of it showing all the records?
    Any help would be much appreciated.  

    Hi,
    Please see the below url
    https://social.msdn.microsoft.com/Forums/sqlserver/en-US/c43f25ab-aa3c-4586-85a1-1b89c3b21b12/how-to-filter-a-sharepoint-list-with-report-parameters?forum=sqlreportingservices
    Solution is define here.
    Hasan Jamal Siddiqui(MCTS,MCPD,ITIL@V3),Sharepoint and EPM Consultant,TCS
    |
    | Twitter

  • Calculated fields in Sharepoint list view

    Hi,
    I have to add a calculated field with formula as
    if the difference between 2 date fields is 0 then i have to add todays date-modifed date.
    how to achieve this in sharepoint list view/column ?
    Aruna

    Hi Aruna,
    SharePoint doesn't allow you to use the[Today] function
    in a calculated column, but there are other work around for this.Please find below link for this.
    http://abstractspaces.wordpress.com/2008/05/19/use-today-and-me-in-calculated-column/
    Regards
    Soni K

Maybe you are looking for

  • Phototsmart Premium C310 Wireless PC to Printer Issues

    I have an odd ball one with a brand new Photosmart Premium C310.  My wireless network consists of a Linksys WRT300N and a Hawking 300N Wireless Range Extender.  All of the devices I have connected to the Linksys or the Extender work fine except for a

  • Multiple instances of OC4J on the same machine

    Is there a way to cofigure OC4J to have a few processes on the same machine, all listening to the same ports? My purpose is to develope and deploy a few applications on the same machine, and each application should has its own process, so if onw fail

  • Data is not uploding for the following code in bdc

    DATA:   bdcdata LIKE bdcdata    OCCURS 0 WITH HEADER LINE. *       messages of call transaction DATA:   messtab LIKE bdcmsgcoll OCCURS 0 WITH HEADER LINE. *       error session opened (' ' or 'X') DATA:   e_group_opened. *       message texts TABLES:

  • ITunes does not automatically sync when iPhone is connected

    I upgraded to an iPhone 3g and I am unable to select the "Automatically sync when this iPhone is connected" option. It is greyed out in the iPhone Summary Tab in iTunes. I would like to automatically sync when I connect the iphone to my mac. How can

  • MacBook Pro Retina Safari Fix

    Hey All, First time poster...thanks for making the site such a great place.  Received a replacement MacBook Pro Retina and still have the same issues in Safari. Here are two sample websites that look weird when I go to view: http://www.usatoday.com/s