---
schema_version: "1"
id: 477fecfc2c465f0f3d17c7556880456ec76f0e318724eabf33f373b3acacb190
title: Values in a Predicate Expression
collection: admin
version: current
locale: en-us
portal_url: https://docs.salesforce.com/admin/current/en-us/analytics/264-0-0/bi_security_datasets_predicate_values.md
canonical_url: https://help.salesforce.com/s/articleView?id=analytics.bi_security_datasets_predicate_values.htm&release=264.0.0&type=5
source_site: help.salesforce.com
content_type: documentation
content_hash: 18a447976647594b11417726f3ef5df3b2cd374477a5e56e5c54a6bbca019172
description: The value in the predicate expression can be a string literal or number literal. It can also be a field value from the User object in Salesforce.
products:
  - CRM Analytics
  - Cross Cloud
release: "264"
---
# Values in a Predicate Expression

The value in the predicate expression can be a string literal or number literal. It can also be a field value from the User object in Salesforce.

Consider the following requirements for each value type.

<table class="slds-table slds-table_bordered slds-max-medium-table_stacked slds-m-bottom_small ">
        <colgroup>
          <col style="width:33.33333333333333%">
          <col style="width:33.33333333333333%">
          <col style="width:33.33333333333333%">
        </colgroup>
        <thead class="slds-text-title_caps ">
          <tr class="">
            <th scope="col" class="slds-cell-wrap" style="vertical-align:top;" id="d23463e31">Value Type</th>
            <th scope="col" class="slds-cell-wrap" style="vertical-align:top;" id="d23463e33">Requirements</th>
            <th scope="col" class="slds-cell-wrap" style="vertical-align:top;" id="d23463e35">Predicate Expression Examples</th>
          </tr>
        </thead>
        <tbody>
          <tr class="">
            <td data-label="Value Type" class="slds-cell-wrap" style="vertical-align:top;" headers="d23463e31 ">string literal</td>
            <td data-label="Requirements" class="slds-cell-wrap" style="vertical-align:top;" headers="d23463e33 ">Enclose in double quotes and escape the double quotes.</td>
            <td data-label="Predicate Expression Examples" class="slds-cell-wrap" style="vertical-align:top;" headers="d23463e35 ">
              <ul>
                <li dir="ltr"><code>'Owner' == "Amber"</code></li>
                <li dir="ltr"><code>'Stage Name' == "Closed
                    Won"</code></li>
              </ul>
            </td>
          </tr>
          <tr class="">
            <td data-label="Value Type" class="slds-cell-wrap" style="vertical-align:top;" headers="d23463e31 ">number literal</td>
            <td data-label="Requirements" class="slds-cell-wrap" style="vertical-align:top;" headers="d23463e33 ">Can be a float or long datatype. Do not enclose in quotes.</td>
            <td data-label="Predicate Expression Examples" class="slds-cell-wrap" style="vertical-align:top;" headers="d23463e35 ">
              <ul>
                <li dir="ltr"><code>'Expected_Revenue' &gt;=
                    2000.00</code></li>
                <li dir="ltr"><code>'NetLoss' &lt; -10000</code></li>
              </ul>
            </td>
          </tr>
          <tr class="">
            <td data-label="Value Type" class="slds-cell-wrap" style="vertical-align:top;" headers="d23463e31 ">field value</td>
            <td data-label="Requirements" class="slds-cell-wrap" style="vertical-align:top;" headers="d23463e33 ">
              <p>When referencing a field from the User object, use the $User.[field] syntax. Use the
                API name for the field.</p>
              <p dir="ltr">You can specify standard or custom fields of type
                string, number, or multivalue picklist. </p>
              <p dir="ltr">When you define a predicate for a
                dataset, you must have read access on all User object fields used to create the predicate
                expression. </p>
              <div dir="ltr">
                <p>However, when a user queries a dataset that has a predicate
                  based on the User object, CRM Analytics uses the access permissions of the Insights
                  Security User to evaluate the predicate expression based on the User object. </p>
                <div class="slds-box slds-box_x-small slds-theme_shade slds-m-top_medium slds-m-bottom_medium">
                  <div class="slds-media slds-media_responsive">
                    <div class="slds-media__figure"><span class="slds-icon_container slds-icon_container_circle slds-icon-note-note"><img style="margin-bottom:0;" src="https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-analytics-bi-264-0-0-production-enus/ec791473-f5b4-4f64-a656-9104f455d966/images/icon_note.png" alt="Note"></span></div>
                    <div class="slds-media__body" style="padding-top:.5rem;padding-bottom:.5rem;"><span class="slds-text-title_caps">Note</span>
                      <p>By default, the Security User does not have access permission on custom fields of the
                        User object.</p>
                      <p dir="ltr">To grant the Security User read access on a field, set field-level security
                        on the field in the user profile of the Security User.</p>
                    </div>
                  </div>
                </div>
              </div>
            </td>
            <td data-label="Predicate Expression Examples" class="slds-cell-wrap" style="vertical-align:top;" headers="d23463e35 ">
              <ul>
                <li dir="ltr"><code>'Owner.Role' == "$User.UserRoleId"</code></li>
                <li dir="ltr"><code>'GroupID' == "$User.UserGroupId__c"</code></li>
              </ul>
              <div class="slds-box slds-box_x-small slds-theme_shade slds-m-top_medium slds-m-bottom_medium">
                <div class="slds-media slds-media_responsive">
                  <div class="slds-media__figure"><span class="slds-icon_container slds-icon_container_circle slds-icon-note-note"><img style="margin-bottom:0;" src="https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-analytics-bi-264-0-0-production-enus/ec791473-f5b4-4f64-a656-9104f455d966/images/icon_note.png" alt="Note"></span></div>
                  <div class="slds-media__body" style="padding-top:.5rem;padding-bottom:.5rem;"><span class="slds-text-title_caps">Note</span> Supported User object field value types are string, number, and multivalue picklist.
                    Other types (for example, boolean) are not supported.</div>
                </div>
              </div>
            </td>
          </tr>
        </tbody>
      </table>