Variables

Variables

Variables are placeholders that help administrators store values and assign it for users. This enables dynamic input parameterization for various operations. With this, you can dynamically filter the reports for each user. You can also create an aggregate formula with dynamic input using Variables. Zoho Analytics provides a set of system variables. You can also create your own custom variables.  

Variables - Basic

1. What is a Variable?

Variables are placeholders that help the Administrators to assign dynamic values for various operations.  Zoho Analytics provides a set of default variables. You can also create your own custom variables.  

You can dynamically apply filters or set the default user filter value for your shared users. You can also create an aggregate formula with dynamic input using Variables.

2. What are System variables?

Zoho Analytics provides a set of predefined system variables that you can use in your filter criteria. They are listed below.

System Variable NameDescription
System.login.emailReturns the email id of the user who has logged in.
System.login.firstnameReturns the first name of the user who has logged in.
System.login.lastnameReturns the last name of the user who has logged in.
System.login.fullnameReturns the full name of the user who has logged in.

3. How to create Custom Variables?

Account Administrator, Organization Administrators, and Workspace Administrators can create variables for a Workspace.

The following presentation explains how to do this. 

4. Can I create multiple Custom Variables?

Yes, you can create multiple variables in a Workspace. All of them will be listed in the Variables tab of the Settings page. You can view and manage all the Variables from this page. 

Using Variables

1. Where can I use Variables?

You can use Variables in the following scenarios.

  • Share Filter criteria
  • Filter criteria for Published Views
  • Aggregate Formula (Custom Variable)
  • Create User Filter (Custom Variable)
  • Default User Filter value (Custom Variable)

2. How to use a variable in share filter criteria?

You can apply dynamic filtering for shared users using variables. 

Follow the below steps to filter data dynamically for shared users. 

  1. Open the view to be shared.
  2. Click Share > Share this view.
  3. Specify the email addresses of users to whom you want to share the view, in the Enter email addresses or group names field.
  4. Click Apply Permissions & Filters and open the Filter Criteria tab.  
  5. Specify the filter criteria in the following format. You can use the set of default system variables or your custom variables as needed.
    "Table Name". "Column Name"=${Variable}
    In the below example, we've set to map the login mail address of the user to the Agent Email column in the Tickets table and the records with his email address will be filtered.
    "Tickets"."Agent Email"=${system.login.email}
  6. Share the View. 
  7. When agents access the view, they will view data for tickets that are assigned to them. 


3. How to use Variables in filter criteria for Published Views?

You can apply dynamic filters for both private and public URLs. 

Follow the below steps to apply filter criteria for Embedded views/Permalink with Login access.

  1.  Publish the view with Login access.
  2. Enter the criteria in the Specify URL Criteria section.
  3. Specify the filter criteria in the following format. You can use the set of system Variables or your custom variables as needed. 
    "Table Name". "Column Name"=${Variable}
    In the below example, we've used a custom variable in which a set of Departments are assigned to shared users' email addresses. When this custom variable is mapped to the Department Name, the agents will view only records for these departments
    "Department"."Department Name"=${Department}
  4. Publish the views. When the agent views the report, their login address will be mapped to the department in the variable, and then the corresponding department records will be filtered. 

Note: For views with Access Permission Access without Login and Public on the web, the filtering will be applied only if the users have logged into Zoho Analytics. Otherwise, the view will be displayed with the default filter value. 

4. How do I create an Aggregate Formula using Variables?

You can create an Aggregate Formula using Custom Variables. This allows you to change the formula input and thus make a dynamic calculation. 

To add Aggregate Formula using Custom Variables, open the Add Aggregate Formula dialog. All custom variables in your workspace with List and Range as Variable value will be listed. You can construct a formula using the variable. The below slide explains this in detail. 


5. How do I create a User Filter using Variables?

You can create User Filters based on Variables, provided an aggregate formula with a variable is used in the report. To add the User Filter, simply drag and drop the variable from the Variables tab. This will change the corresponding value in the formula used in Aggregate Formula. 


6. How to set as default User Filter value using a variable?

You can set a dynamic default User Filter value using a custom variable. This is applicable for variables with Plain Text as Data Type. 

Follow the below steps to set the default User Filter value using the variable. 

  1. Open the view in Edit Mode.
  2. Open User Filter tab.
  3. Drop the categorical column for the user filter.
  4. In the Specify the default filter value field, enter $.
  5. All the text-based custom variables in the workspace will be listed. Select the required variable. 
  6. Save the view. When the shared user accesses the view, the corresponding variable value mapped to their mail id will be set as the default user filter value. 

Managing Variables

1. How do I manage all my Variables?

All Variables will be listed in the Variables tab of the Settings page. You can view and manage all the Variables from this page. On mouseover, a contextual menu to edit and delete the Variables will appear.

2. How to edit a Variable?

You can edit a variable from the Workspace Settings page by following the steps below. 

  1. Open the Workspace Explorer
  2. Click Settings and then open the Variables tab. 
  3. Hover the mouse over the Variable you want to edit. A contextual menu will open. 
  4. Click the Edit icon. The Edit Variable dialog will open. 
  5. Make the required modification and click Update. The variable will be modified. 

3. How to delete Variables?

You can delete a Variable from the Workspace Settings page by following the steps below. 

  1. Open the Workspace Explorer
  2. Click Settings and then open the Variables tab. 
  3. Hover the mouse over the variable you want to delete. A contextual menu will open. 
  4. Click the Delete icon. An Alert message will be shown to confirm the action.
  5. Click Yes to delete the Variable. 


        Create. Review. Publish.

        Write, edit, collaborate on, and publish documents to different content management platforms.

        Get Started Now


          Access your files securely from anywhere

            Zoho CRM Training Programs

            Learn how to use the best tools for sales force automation and better customer engagement from Zoho's implementation specialists.

            Zoho CRM Training
              Redefine the way you work
              with Zoho Workplace

                Zoho DataPrep Personalized Demo

                If you'd like a personalized walk-through of our data preparation tool, please request a demo and we'll be happy to show you how to get the best out of Zoho DataPrep.

                Zoho CRM Training

                  Create, share, and deliver

                  beautiful slides from anywhere.

                  Get Started Now


                    Zoho Sign now offers specialized one-on-one training for both administrators and developers.

                    BOOK A SESSION







                                Quick LinksWorkflow AutomationData Collection
                                Web FormsEnterpriseOnline Data Collection Tool
                                Embeddable FormsBankingBegin Data Collection
                                Interactive FormsWorkplaceData Collection App
                                CRM FormsCustomer ServiceAccessible Forms
                                Digital FormsMarketingForms for Small Business
                                HTML FormsEducationForms for Enterprise
                                Contact FormsE-commerceForms for any business
                                Lead Generation FormsHealthcareForms for Startups
                                Wordpress FormsCustomer onboardingForms for Small Business
                                No Code FormsConstructionRSVP tool for holidays
                                Free FormsTravelFeatures for Order Forms
                                Prefill FormsNon-Profit

                                Intake FormsLegal
                                Mobile App
                                Form DesignerHR
                                Mobile Forms
                                Card FormsFoodOffline Forms
                                Assign FormsPhotographyMobile Forms Features
                                Translate FormsReal EstateKiosk in Mobile Forms
                                Electronic Forms
                                Drag & drop form builder

                                Notification Emails for FormsAlternativesSecurity & Compliance
                                Holiday FormsGoogle Forms alternative GDPR
                                Form to PDFJotform alternativeHIPAA Forms
                                Email FormsFormstack alternativeEncrypted Forms

                                Wufoo alternativeSecure Forms

                                TypeformWCAG


                                    All-in-one knowledge management and training platform for your employees and customers.

                                              Create. Review. Publish.

                                              Write, edit, collaborate on, and publish documents to different content management platforms.

                                              Get Started Now





                                                                You are currently viewing the help pages of Qntrl’s earlier version. Click here to view our latest version—Qntrl 3.0's help articles.




                                                                    Manage your brands on social media


                                                                      • Desk Community Learning Series


                                                                      • Digest


                                                                      • Functions


                                                                      • Meetups


                                                                      • Kbase


                                                                      • Resources


                                                                      • Glossary


                                                                      • Desk Marketplace


                                                                      • MVP Corner


                                                                      • Word of the Day


                                                                      • Ask the Experts


                                                                        Zoho Sheet Resources

                                                                         

                                                                            Zoho Forms Resources


                                                                              Secure your business
                                                                              communication with Zoho Mail


                                                                              Mail on the move with
                                                                              Zoho Mail mobile application

                                                                                Stay on top of your schedule
                                                                                at all times


                                                                                Carry your calendar with you
                                                                                Anytime, anywhere




                                                                                      Zoho Sign Resources

                                                                                        Sign, Paperless!

                                                                                        Sign and send business documents on the go!

                                                                                        Get Started Now




                                                                                                Zoho TeamInbox Resources





                                                                                                          Zoho DataPrep Demo

                                                                                                          Get a personalized demo or POC

                                                                                                          REGISTER NOW


                                                                                                            Design. Discuss. Deliver.

                                                                                                            Create visually engaging stories with Zoho Show.

                                                                                                            Get Started Now








                                                                                                                                • Related Articles

                                                                                                                                • Sharing Views to a User

                                                                                                                                  In Zoho Analytics, you can easily share your data, reports, and dashboards to any user privately. All the views shared will be accessible online from anywhere, anytime, to the shared user and there is no need for mailing them as attachments. The ...
                                                                                                                                • Workspace Settings

                                                                                                                                  Workspace Settings Zoho Analytics allows you to specify a set of preferences for your Workspaces such as setting the beginning of your fiscal year, set chart color palette or grid theme across the reports and manage users, data alerts and slideshows. ...
                                                                                                                                • Forecasting

                                                                                                                                  Predict future trends and analyze how various factors influence the data trends with advanced forecast models. Forecasting in Zoho Analytics is based on powerful forecasting algorithms that analyze your past data deeply, and come up with the best ...
                                                                                                                                • Workflow Orchestration

                                                                                                                                  Zoho Analytics lets you go beyond single step actions. Any trigger can kick off a fully automated, end-to-end workflow that spans multiple systems and teams. With the embedded Zoho Flow builder, you can visually design, manage, and scale complete ...
                                                                                                                                • Creating a New Chart

                                                                                                                                  Zoho Analytics provides an easy to use drag and drop interface to create charts fast & easy. You can create various types of charts including Bar, Line, Pie, Bubble, Packed Bubble, Stacked, Scatter, Area, Combination, Funnel, Web etc., by simply ...
                                                                                                                                  Wherever you are is as good as
                                                                                                                                  your workplace

                                                                                                                                    Resources

                                                                                                                                    Videos

                                                                                                                                    Watch comprehensive videos on features and other important topics that will help you master Zoho CRM.



                                                                                                                                    eBooks

                                                                                                                                    Download free eBooks and access a range of topics to get deeper insight on successfully using Zoho CRM.



                                                                                                                                    Webinars

                                                                                                                                    Sign up for our webinars and learn the Zoho CRM basics, from customization to sales force automation and more.



                                                                                                                                    CRM Tips

                                                                                                                                    Make the most of Zoho CRM with these useful tips.



                                                                                                                                      Zoho Show Resources