How To... - Displayr https://www.displayr.com/category/using-displayr/how-to/ Displayr is the only BI tool for survey data. Tue, 05 Dec 2023 23:32:39 +0000 en-US hourly 1 https://wordpress.org/?v=6.4.2 https://www.displayr.com/wp-content/uploads/2023/10/cropped-Displayr-Favicon-Dark-Bluev2-32x32.png How To... - Displayr https://www.displayr.com/category/using-displayr/how-to/ 32 32 Qualtrics Integrations https://www.displayr.com/qualtrics_integrations/?utm_medium=Feed&utm_source=Syndication https://www.displayr.com/qualtrics_integrations/#respond Mon, 04 Dec 2023 20:48:49 +0000 https://www.displayr.com/?p=35328

Displayr and Qualtrics Integrations

Qualtrics has been an unqualified success in recent years, democratizing survey scripting and data collection and used by organizations globally to drive customer experience and many other types of survey research projects. At the same time Displayr has built an unparalleled product in survey analysis and reporting. From simple cross tabs to advanced analytics, from PowerPoint automation to beautiful dashboards, Displayr makes everything easy.

This is why integrating Qualtrics with Displayr makes perfect sense. The new Qualtrics integrations means you can automate everything, instantly, from data collection through to insight delivery.  And even if you are building a new report from scratch, once you have your Qualtrics data connected you'll benefit from Displayr's exploratory analysis tools to help to find and build the story in your data.

Integrating Qualtrics

The key to connecting Qualtrics and Displayr is direct integration. Via the Qualtrics API you can connect your data to Displayr's vast array of analysis and reporting features and control how often your report, and its underlying analysis, is updated. Displayr automatically cleans and formats your Qualtrics data so everything is ready to go in an instant. This means

  • Crosstabs and visualizations will be updated
  • All 'Rules' and conditions are updated
  • Table structures and formats are automated
  • Dashboard reports and infographics can be made available in real-time
  • Any PowerPoint reports created using the Qualtrics API can be automatically updated.

In addition, Displayr makes it easy to dive deeper into your analysis. This means that any analysis technique is now available to you including regression, PCA, clustering, latent class analysis, machine learning, MaxDiff, conjoint, TURF, and so much more. In fact, there's no multivariate analysis you cannot perform in Displayr.

Is the Qualtrics API free?

Qualtrics offers integration capabilities with a variety of software, including Displayr. To access the Qualtrics API, you will need to have Administrator access in Qualtrics. You can then retrieve the Qualtrics API key and paste it into the Displayr integrations pop-up box that appears when you click the 'connect data' button in Displayr. The Qualtrics integration works with the Displayr free, Displayr trial, Displayr Professional, and Displayr Enterprise licenses. The Displayr free license is limited to a dataset with no more than 1000 rows and 100 columns of data.

Are there disadvantages of using Qualtrics?

Qualtrics is a great survey collection platform and has solid analysis capabilities. However, professional market researchers and consumer insights teams often require more functionality than the Qualtrics platform has. So the Qualtrics Displayr integration provides all the tools professional researchers need. Professional researchers are sometimes limited by the following Qualtrics disadvantages:

  1. Limited/rigid crosstabs features. Researchers often need to churn out and quickly sort through hundreds of crosstabs. They also need flexibility in merging columns, fusing different tables and questions, creating custom calculations within or across tables, and setting tables up to meet individual specifications.
  2. Limited PowerPoint reporting functionality. Most researchers report in PowerPoint, and require software to connect their data to their PowerPoint reports so they can be automatically updated with new data or when the data changes.
  3. Limited advanced analysis techniques and no ability to work in code. Researchers need to use a wide range of statistical analysis techniques for different types of data. They also occasionally prefer the flexibility of using R code to for calculations or dashboards.
  4. Limited dashboard design capabilities. One of the reasons most researchers use PowerPoint is its ability to add narratives and images to the data stories. Researchers need to make insights easy for their audience to understand and to have live, updated dashboards. So having online, interactive PowerPoint-style reports that are connected to their data gives them the best of both worlds.

Setting up the Qualtrics API

The following video shows how to easily connect your Qualtrics data using the Qualtrics API.

You can also find more information here: How to Import Qualtrics Data in Displayr

 

Take the Next Step

If you want to know more about data integration or Displayr generally, book a demo or take a free trial.

]]>
https://www.displayr.com/qualtrics_integrations/feed/ 0
Creating a composite or “mash-up” summary table in Displayr https://www.displayr.com/composite-summary-table/?utm_medium=Feed&utm_source=Syndication https://www.displayr.com/composite-summary-table/#respond Tue, 07 Nov 2023 00:51:39 +0000 https://www.displayr.com/?p=35129

 

Displayr can create bespoke calculations, making it easy to go beyond the observed data to help tell your story. This saves you from using multiple applications, for example, having some of your workings in Excel.

Indeed, you can replicate much of what you might want to do in Excel using the Calculation Grid … it can be used to create interim calculations and, importantly, combine different types of data in one table.

Beginning with the end in mind ...

The end game here is to create a table like this, which summarizes data from several questions in a single, easy-to-format, matrix-style table.

 

Key Inputs

This table is built using these four inputs ...

  1. Ranked (disguised) data on the Main Cell Phone provider.   Given the structure of the market, we only want to focus on the Top 3
  2. Net Promoter Score results (click for more information on Net Promoter Scores or NPS)
  3. Satisfaction with three critical elements of the service offer.   The table shows Z-Statistics to tease out relative strengths and weaknesses.
  4. A filter control (click for more information).

All inputs 1-3 are linked to the filter control.

 

Earlier, I'd also prepared cross-tabs for Main Phone Company by all demographics and sorted them in order of significance to help zero in on the main differences.

Cross tab inputs

Creating our composite or summary table.

Take a look at the process in action in this short video.

The key steps are:

  • Insert a Calculation Grid of the required dimensions
  • Double-click into cells to edit labels and enter simple text as we go (text information needs to be contained within "quotation marks")
  • Copy selected cells from the "Main Phone Company" table and paste them into the Grid. Formulae with references are created automatically, e.g., table.Main.phone.company.4[1]
  • Enter a formula for the first Net Promoter Score calculation (Promoters minus Detractors) by clicking into the required cells and adding mathematical operations as we go: table.Net.Promoter.Score.2[1, 1]-table.Net.Promoter.Score.2[3, 1]
  • Using a bit of Displayr magic, enter code to sort the satisfaction scores in memory and read off the label of the highest ranked row for the first column: names(sort(table.satisfaction.2[, 1],decreasing=TRUE))[1]. This gives us "Key Strength".
  • Repeating step 5 for "Key Weakness," replacing decreasing with increasing in the formula.
  • Selecting the formulae created for steps 4, 5, and 6 and dragging to autofill these same formulae for the other columns.

The only limit is your imagination.

As you can see, Displayr's Calculation Grids allow you to customize your analysis, making it easy to go beyond the observed data without having to do your workings elsewhere.   You can easily change and manipulate calculations once they are set up; everything is connected. This saves you time, which you can then apply to other ways to add value to your data.

If you want to know more about Calculation Grids or Displayr generally, book a demo or take a free trial.

 

]]>
https://www.displayr.com/composite-summary-table/feed/ 0
Why bury your workings in Excel? https://www.displayr.com/why-bury-your-workings/?utm_medium=Feed&utm_source=Syndication https://www.displayr.com/why-bury-your-workings/#respond Thu, 28 Sep 2023 00:59:42 +0000 https://www.displayr.com/?p=34871 ...]]> A typical workflow using "interim" calculations

The creative market researcher always seeks to go beyond the limitations of the source data and add value.   One way of doing this is to create new variables or data points from existing ones.

Consider a scenario where there is a desire to plot:

  • market penetration, an existing variable (“Ever”) …
  • against adoption rate, a new dimension created by dividing the result for “Monthly” by the result for “Ever”.

A typical workflow might be …

 

There are however potential problems with this approach:

  1. If the output needs to be updated, for example when there is new data added, many if not all the steps need to be repeated.
  2. If the output needs to be replicated for say different filters or scenarios, this too can involve repetition.
  3. If the updates or replications are to be done by someone other than the original author, the need to find the right Excel Workbook and the right location within it can take up valuable time.

 

The Power of Having Everything Connected

These problems are instantly resolved by having your data, outputs, and workings housed and connected in one document, as you can do in Displayr.   Zooming out in this example we can see the following set up.

  • A) Hidden tables for the two source questions, “Ever” and “Last Month”.
  • B) A hidden calculation, dividing the results for “Last Month” by “Ever”, our adoption ratio.
  • C) A Calculation Grid, extracting brands from A and B and linking data via cell references.
  • D) A scatter-plot visualization linked to C.

There are also some filter controls top left and a dynamic date filter applied to all inputs so the analysis will always show the most recent quarter as the data is updated.

Hidden items (indicated by grey cross-hatch shading) means that the document editor can see the output but it will not be shown when published to a dashboard or exported to PowerPoint.

 

 

If someone comes to edit the document later the relationships are easily identified via Displayr’s dependency graph (right click on an item to find it).  The scatter plot is created from the summary table, the summary table is a combination of Q3 and the adoption calculation, and so on.  This addresses problem 3 noted earlier (difficulty in tracing workings when they are in a different place).

But the real benefits kick in when it comes to updating or replicating this output (problems 1 and 2).   It should be self-evident but watch in this video how seamless it is to create new versions of the framework via filtering and updating it with new data … even the footer descripting the sample date and size changes.

 

If you want to take a closer look and study the workings in detail, you can get a copy of this document here: Embedded Workings

 

Once you’ve tried embedding your workings in your report and have both linked directly to the source data, it’s very hard to go back to using external workbooks or sheets.

]]>
https://www.displayr.com/why-bury-your-workings/feed/ 0
Creating a dynamic BCG Matrix https://www.displayr.com/creating-a-dynamic-bcg-matrix/?utm_medium=Feed&utm_source=Syndication https://www.displayr.com/creating-a-dynamic-bcg-matrix/#respond Wed, 06 Sep 2023 01:26:39 +0000 https://www.displayr.com/?p=34791 ...]]> A powerful strategic planning tool ...

A quick Google search on "BCG Matrix" demonstrates it's one of the most popular strategic tools around.   Courtesy of the Boston Consulting Group, it plots relative market share against growth rate, to help determine marketing or resource allocation effort:

  • Invest in "Stars"
  • Milk (maintanance-level investment) "Cash Cows"
  • Reduce investment in "Dogs"
  • Strategize high-growth/low share "Question Marks"

It can be used to study either your own portolio or an entire market, to help qualify the strength of competitive threats or opportunities.   Here is an example for a fictituous fast food market:

 

 

... made even more powerful!

With the required data at hand, it's not that hard to create a BCG matrix in Excel and dress it up in PowerPoint.  But what if you wanted to replicate the matrix for different geographic markets or revisit it when you have new data?   That's potentially a lot of time and effort.  Displayr makes it easy to create a dynamic BCG matrix.  You can easily switch between markets (or any other filters) and have it update automatically overtime, when new data is added.

This is enabled by your data, you workings, and the output all being connected and in the one place.   Changes in to any item automatically impact other items "downstream".

If our brand is "Burger Chef" the strategic position is vastly different in North and South America, requiring different marketing solutions.

 

You can access this dashboard, explore its workings, and see how the dynamic matrix was built in Displayr here.   The key steps in the process are also set out below ...

 

_______________________________________________________________________________

1 Source some market share data

Here we've used occasion counts to calculate share, and shown this overtime.   With the table selected, we've renamed it "market.share" in the Object Inspector (so it's easy to find in drop down lists, etc).

 

2 Calculate the x-axis (relative market share)

  1. In our case we want to matrix to update annually so it's ready for each new phase of strategic planning.   We created a table using Table > Select > Input "market.share", then Select columns by > Last columns (1), so it's always showing the most recent market share.
  2. With "current.share" selected, Calculation > Maximum > Maximum Each Column, name this calculation "maximum.share"
  3. Select "current.share" table first, then holding down Shift, select "maximum.share" output, Calculation > Divide.  The selection order makes things more efficient when using mathematical functions.  Name the new output "relative.share"

3 Calculate the y-axis (year-on-year growth rate)

  1. Find the "market.share" table in your document (Step 1) and duplicate it.   It will automatically be named "market.share.2".  Rename it "absolute.change".  Move it to a new page or working space.
  2. With the table selected, Rules > Table Computations > Different Between Pair of Columns.  In the Rule settings, select "Last Column" as Column 1 input and "2nd Last Column"  as Column 2 input.  Again, in this way the data will always be up to date when it changes.   Label the new column "Change YOY".
  3. An easy way to calculate relative change, our target metric, is to insert Calculation > Custom Code, then click on items to reference them or simply start typing their name.   This is the end result of the custom code needed:
    absolute.change[, 4]/(current.share-absolute.change[, 4])*100.

    Here's how easy it is to do ....

4 'Rough-in' the matrix

  1. Visualization > Bubble > Labelled Bubble, then click and drag the cursor to locate the chart
  2. Inputs > DATA SOURCE > X coordinates > relative.share, Y cordinates > growth.rate, Sizes > current.share
  3. We opted to exclude a couple of outliers - Arnold's, as it's the known dominant leader and Bread Basket as it's new and has an artificually high growth rate.   In Inputs > ROW MANIPULATIONS > Rows to ignore add Arnold's, Bread Basket
  4. In Chart, tidy up as required - add data and axes lables, remove grid lines, etc.

5 And finally, add a control

  1. Anything > Filter > Control > Combo Box (Drop Down) on an Output, select the variable "Market" and allow the user to select more than one category when prompted.   A new variable will be created called "Combo Box Filter Market" which you can rename if you wish.
  2. Find the the two source tables market.share and absolute.change, select them and apply the combo box filter via Inputs > Filter(s)

After Steps 4 and 5 you will have a working framework as per below.  We then handed the document to our designers to create the final version (as shown above), ready for publishing.    Before publishing you would Hide all the working steps above (hiding either the pages they are on or the individual items if they are below the main dashboard).

]]>
https://www.displayr.com/creating-a-dynamic-bcg-matrix/feed/ 0
Introducing calculation grids https://www.displayr.com/introducing-calculation-grids/?utm_medium=Feed&utm_source=Syndication https://www.displayr.com/introducing-calculation-grids/#respond Wed, 21 Jun 2023 01:58:56 +0000 https://www.displayr.com/?p=34469 ...]]> Summary

Calculation grids allow you to add a new type of table onto a page, where the table can be a mix of text,  values, or calculations, including links to other tables.

Calculation grids allow you to do things in Displayr that you previously would have had to do in Excel or PowerPoint.

How to use

Calculation grids are added from the Calculation menu in the toolbar. You can add data into a calculation grid by:

  1. Typing directly into it. If you want to type text, surround it by quotation marks (e.g., "my text")
  2. Copying either data from another table, or part of a table, and right-clicking and choosing from the paste options.

Example use case

It's often useful to create tables like the one below, which draw in data from multiple other tables.

These are now easy to do using calculation grids. The 2 minute demo video below runs through this use case.

Key differences from Excel

Feature roadmap

  • Custom formatting of individual cells (font, color, number format, borders)
  • Custom row and column heights/widths
  • Speed and performance of calculations
  • Excel like updating of cell references when copying formulas across cells
  • Custom Displayr R functions to simplify formula creation e.g. vlookups

We hope you find calculation grids to be useful and if you have any feedback or questions please reach out to us via the help menu in app

]]>
https://www.displayr.com/introducing-calculation-grids/feed/ 0
Transform Variables Automatically https://www.displayr.com/combine-variables-automatically/?utm_medium=Feed&utm_source=Syndication https://www.displayr.com/combine-variables-automatically/#respond Sun, 05 Jun 2022 23:36:56 +0000 https://www.displayr.com/?p=30773 ...]]>

Displayr has a large and growing library of automated variable creation options.   This library now includes the ability to automate combining the data contained within certain types of variables into new and interesting categories:

  • Transform numeric variables into useful categorical variables
  • Combine or collapse categorical variables into meaningful groups based on patterns in the data
  • Convert information like Zip or Postal Codes into logical geographic areas

This automation can save you a lot of time. Most importantly, these functions make relationships in data clearer, to help sharpen your analysis and story building.

Displayr users can find and explore these features in Ready-Made New Variables > Automatically Combine Categories. Here are a few examples to bring these features to life...

Create Categories Based on Data Values

Select a numeric variable as input and have a high degree of flexibility in how you transform it - you can automatically create data-driven tidy categories, percentiles, equally spaced categories (where you can control the increments), or custom categories.  Custom categorization allows you to enter pre-defined 'cut-points' - the variable is created without having to use code or make manual edits. Displayr can also automate the Label style, with a range of options dependent on the categorization method selected.

 

In this video we create a complex numeric variable and transform it using a range of these methods:

 

Combine or Collapse Categories based on Patterns in Related Data

This option will automatically collapse categories in the input variable based on the statistical relationships to another variable. It does this using CHAID (Chi-Squared Automatic Interaction Detection). Simplifying the variable of interest gives the analysis a lot more focus, providing insight and promoting actionability.

In this example, looking at the impact of household structure on category consumption frequency, we started with 9 categories that indicated some relationships in the data and automatically transformed that to 3 categories where the relationships are abundantly clear. 'Young Singles' is the primary demographic segment of interest and 'Younger Groups' is the secondary segment of interest.

In Displayr, select Ready-Made New Variables > Automatically Combine Categories > By Pattern (CHAID). When working with ordinal variables you can force the function to only collapse adjacent categories.

Convert one type of Geographic Data into Another

The proliferation of online research and the integration of survey research with CRM systems has led to much larger sample sizes. This brings into play geographic variables like ZIP or postal codes.   Displayr has functionality to transform these and other types of geographical data for North America, Europe, Australia and New Zealand. This geographic heat map was created from scratch, combining ZIP code and category frequency data, in less than 2 minutes.

 

You can see the steps in this video:

 

Explore Automatic Combinations now!

Existing customers will quickly see how much time they can save and how much power they can add to their analysis using the automated functions to combine numeric, categorical, and geographic data. Anyone else can book a demo or take a free trial.[/vc_column_text][/vc_column][/vc_row]

]]>
https://www.displayr.com/combine-variables-automatically/feed/ 0
Add Calculations or Values Directly to Visualizations https://www.displayr.com/add-calculations-directly-to-visualizations/?utm_medium=Feed&utm_source=Syndication https://www.displayr.com/add-calculations-directly-to-visualizations/#respond Mon, 21 Mar 2022 22:11:30 +0000 https://www.displayr.com/?p=30408 ...]]> One of the best things about using Displayr is that everything is connected – for a given visualization or chart it’s easy to trace the steps and review how it was created, and changes to any input are automatically reflected in linked visualizations.  This saves a lot of time when building or updating documents.

However you can make the process of creating inputs for visualizations, charting, and tables even easier by adding calculations or values directly to the data input drop-down.

 

Enter a calc

 

Example 1 – Custom Selection from a complex table

Here is a typical table that has been created from some consumption data for fictitious fast-food brands.

Initial table

Let’s say we are only interested in charting the data for Burger Chef and a direct competitor, Burger Shack.    One way to do this would be to:

  1. Duplicate the question (to keep the original data and table intact)
  2. Create the table
  3. Hide all but the two columns in question, or, use the Tables > Selection function to create a subset of the table
  4. Insert a visualization, say for a column chart
  5. Hook up the table to the visualization.

 

This would work fine but it also adds some complexity – Step 1 adds over 100 new variables to the Data Set (some of the rows have been merged) and there are several interdependent elements in the workflow described above.

 

With the ability to ' Enter a calculation or value' directly in the drop-down, in combination with Displayr’s point-and-click formula creation, the process is a whole lot easier.   You can see this in action here.

 

 

We took that slowly so you can see the steps, but in less than 30 seconds we’ve achieved the required result, and with fewer steps.

 

Example 2 – Modifying a Variable before visualization

The same Data Set contains information on the estimated number of visits each brand attracted in a month.

Initial table 2

Let’s say we wanted to express this as a weekly average, to conform with other market metrics (e.g. weekly sales).   Again, one way to do with would be to:

  1. Select the variable set
  2. Calculate > Divide, which creates a new copy of the variable set
  3. Enter ‘4’ as the single number to divide by, as a proxy for weekly data
  4. Insert a visualization, say for a bar chart
  5. Hook up the table to the visualization

 

Using the ‘Enter a calculation or value’ function this can be done without the need to create any new variables, as shown in this video

 

 

Again, all the required steps have been condensed to a few simple ones, and in just a few seconds

Learn more about custom selections and formula creation in Displayr: Calculate Anything! or Boost your analysis with in-built Calculations

The possibilities for Displayr’s custom selection and formula creation functions are vast – now you can easily add such calculations to visualization drop-downs, the only limit is your imagination!

]]>
https://www.displayr.com/add-calculations-directly-to-visualizations/feed/ 0
Calculate Anything! https://www.displayr.com/calculate-anything/?utm_medium=Feed&utm_source=Syndication https://www.displayr.com/calculate-anything/#respond Thu, 09 Dec 2021 22:26:43 +0000 https://www.displayr.com/?p=30162 ...]]> Built-in Calculations

In addition to creating tables and common advanced analysis functions (like clustering, correspondence mapping), Displayr has built-in operations to create simple calculations from variables or tables.

 

calc menu

 

You can read more about these functions here.

Built In Calculations

 

Create your own custom code

You can however go a lot further with custom code.  Point-and-click functionality allows you to select the specific inputs you need.  This can refer to:

  • variables
  • specific table cells,
  • entire rows or columns and ranges.

 

calcs on tables

 

See how easy it is to create your own custom code here.

Calculate Anything

 

Bespoke analysis functions

Displays allows you to perform the types of functions that people ordinarily do in Excel (e.g. Sum, Average, Count, etc.)

formulas in calculations

 

 

There are a range of examples here

Bespoke Analyses

 

Calculate Anything In Displayr!

Next time you find yourself in problem-solving mode with your data, find the solution with Displayr's suite of calculation functions.

]]>
https://www.displayr.com/calculate-anything/feed/ 0
Setting up “branded” Power-Point-style templates in Displayr https://www.displayr.com/setting-up-branded-power-point-style-templates-in-displayr/?utm_medium=Feed&utm_source=Syndication https://www.displayr.com/setting-up-branded-power-point-style-templates-in-displayr/#respond Wed, 08 Sep 2021 00:31:34 +0000 https://www.displayr.com/?p=29389 ...]]> The good news is this can be done in a few simple steps (there is a video of these steps in action below).

1:  Have a document with your PowerPoint template ready.

This will typically be in Standard (4:3 or A4) or Widescreen (16:9) format.   Decide what format your new Displayr template is to be in.

2:  Open a blank Displayr document

From the Document page, select +New Document, check that the tab at the top is set to your desired format, then select ’Blank’

3:  Go to the Page Master and edit the Displayr defaults

In addition to a “Blank” page (which requires no editing), there are default layouts for Title Only, Title Page, and Title and various Content Layouts.

This is the key step – you basically need to change the titles, text box formats and default chart colors to reflect your PowerPoint template and paste in any graphical elements from PowerPoint.

You can duplicate and edit any of these pages if you want to add more master pages.

4:  Save your template using the required file naming conversion and download a QPack.

Publish > Export Data > Download Document (*.QPack)

Name the *.QPack as per these conventions (this is required for it to be read in when uploaded, in Step 6).

  • Widescreen templates: [Template Name].widescreen.template
  • Standard templates: [Template Name].template

Be case specific for the "widescreen" and "template" terms

5: Create thumbnail images of some of the key pages (optional)

This step enables you to see a preview of your template in the gallery when creating a new document, so it’s worth doing. These are also used in Step 6.

The file-naming convention for the first image to show in the gallery is:

  • Widescreen templates: [Template Name] 1.widescreen.template.png
  • Standard templates: [Template Name] 1.template.png

For second and subsequent images, replace the “1”, with 2, 3, etc.  Note, apart tom the name text before the number, these terms are case sensitive and there must be a space between the template name and the number.

 6: Upload the template *.QPack and related *.png files to your Displayr Cloud Drive

The Displayr Cloud Drive is accessed via the Icon at the top right of screen:

Shortly after this step you will see your own template available from the gallery of options when you create a new document (as per the “Burger Chef” example here).

 

 

The steps in action

This video works through the key steps.

 

Anyone with basic PowerPoint skills can easily set their own corporate or client templates up in Displayr.  Once done, your analysis and report build can always be “on-brand”, saving you time and producing better looking reports

]]>
https://www.displayr.com/setting-up-branded-power-point-style-templates-in-displayr/feed/ 0
Data Editing in Displayr https://www.displayr.com/data-editing-in-displayr/?utm_medium=Feed&utm_source=Syndication https://www.displayr.com/data-editing-in-displayr/#respond Wed, 30 Jun 2021 00:35:22 +0000 https://www.displayr.com/?p=28773 ...]]> The need to view and potentially edit raw data is common amongst survey researchers.

Some use cases for instance:

  • Identifying and removing rogue respondents (speeders, flat-liners*, inconsistent responses, etc.).
  • Fixing up an error that was missed in the survey scripting process
  • Pasting in matching variables from another source (typically Excel), to allow them to be included in the analysis.
  • Publishing filtered versions of the data file.
  • Publishing clean versions of the data file (i.e. without ‘created’ variables, hidden programming variables) for external client use.

Displayr’s raw data editing and publishing features have a lot of built in functionality. As a result the deliver to these needs, with ease.

* Tip: Displayr can automatically identify flat-lining or straight-lining (respondents giving the same answer for all questions in a set). It gives you a report on questions effected.  From the main menu select Anything > Reports

 

Accessing the Raw Data Editor

To open the Data Editor, select one or more variables (or combined variable sets) in the Data Tree, then right-click and select "View in Data Editor". Alternatively, there is a button in the Object Inspector with the same name if you have a variable/variable set selected. You can also use the button that appears on the preview tooltip when hovering over a variable or question. The Editor will appear at the bottom of the screen showing the raw variables that you have selected.

data editor access

You can also drag more variables to it once open and drag-and-drop columns inside the Data Editor. As a result you can reorder them as you like.

 

Using the Raw Data Editor

Manipulating the table

The column headers contain the 'names' (not labels) of the variables. The row headers contain the Raw Case Numbers. The rounded bars above each column show which Variables are grouped into Variable Sets. To toggle between showing raw values or labels, use the control at the right of the header.

You can sort your data using the sorting icons in the column headers. The first time you click, that column will be sorted in Ascending order. The second time you click it will toggle to Descending and a third click will reset it to not be sorted. You can sort by multiple columns in the order you activate their sorting.

DE Table manipulation

Editing

Values can be edited directly by double-clicking on a cell or pressing “Enter” *. Edited cells have a “flag” added so you know which have been modified.

flag

In the Data Editor you can right-click on edited values and select “Revert” to restore the data to it's original state. You can also do this in the Data Sets tree for entire variables.

You can also copy and paste values or ranges of values within the Data Editor or copy to or paste from Excel. If you have one or more full columns of values in Excel, you can copy them, right-click on a column header in the Data Editor and select "Insert New Variable(s)". These are added to your Data Source in Displayr. You can then use the new variable(s) as you would any other in Displayr.

In this example, we temporarily copied “Postcode” from the Data Editor, pasted into Excel, used a LOOKUP function to assign a Geographic Zone code, and “Inserted” this in Displayr.  as a result it becomes available in the Data Sets tree.

 Date editor insertion

* Calculated variables (e.g. JavaScript or R variables) cannot be edited.

Deleting

Firstly, you can delete individual rows (cases) by clicking on the row header. Use Ctrl-clicking to add more rows tor Shift-clicking to select a range of rows. Just right-click in a selections and select "Delete Row(s)".

Secondly, you can delete rows that match a filter using the control near the right of the header of the Raw Data Editor. Select an existing filter (or create one in the Data Editor) by selecting "New") and the matching rows will be highlighted in Green. Right-click one of the matching rows, then select "Delete Row(s) Matching Filter".

This example is from a large scale “Usage and Attitude” study, where we would expect the interview length to be an absolute minimum of 15 minutes. Survey length here is measured in seconds. We created a filter to select respondents with the equivalent of 15 minutes in seconds and these respondents are highlighted. We can easily now remove them from the data.

date editor deletion

To restore deleted rows, select the data source in the Data Tree, then in the Object Inspector click "Undelete observations...".

Publishing (or exporting) edited data.

You can publish a data file that reflects the edits made - from the "Publish" menu (top of screen) select "Export Data" and then choose your format. Currently there are options for SPSS (*.sav) or Excel (*.csv) formats.

Use cases include for instance:

  • If the original file required a lot of cleaning, you may want to export and use an updated version, for the purposes of project efficiency.
    You may want to (for example) break a multi-country study into country specific files.
  • You may want a version of the file for your external client that has your workings and “programmed” variables hidden.

Read more about this here: Publishing Data Files

 

The complete package.

Displayr already features state-of-the-art advanced analysis tools, excellent table and visualization functions, and editable and updatable PowerPoint exporting. With the Data Editing feature, it is even more so the complete package, for all your survey analysis and reporting needs.

]]>
https://www.displayr.com/data-editing-in-displayr/feed/ 0
How to retrospectively automate an existing PowerPoint report using Displayr https://www.displayr.com/how-to-retrospectively-automate-an-existing-powerpoint-report-using-displayr/?utm_medium=Feed&utm_source=Syndication https://www.displayr.com/how-to-retrospectively-automate-an-existing-powerpoint-report-using-displayr/#respond Fri, 27 Nov 2020 15:38:42 +0000 https://www.displayr.com/?p=26549

With Displayr it’s possible to create and automate your PowerPoint reports as shown in this post.

It is also possible to take an existing PowerPoint report and retrospectively automate it. In this post, I will show you how to do that using an example report. The example report is based on a tracking study that I wish to set-up to be automatically updated with the latest wave of data.

The report, as shown below, consists of two slides with 6 data objects all of which can be automated.

These objects are:

  1. A table showing the number and % of respondents for the last 13 months
  2. A Pie chart showing the Gender split for the last month
  3. A Bar chart showing the Age split for the last month
  4. A sorted Bar chart with Food Categories that have been eaten or bought in the last month
  5. A trended Line chart showing Food Categories that have been or bought in the last 13 months
  6. A Text box showing the question label and last months base size

The process:

  1. Create a new Displayr document and import your data
  2. Create dynamic time filters
  3. Create data tables replicating the outputs in the PowerPoint report
  4. Linking the Displayr outputs to the PowerPoint report
  5. Updating the data set with the latest wave of data
  6. Updating the PowerPoint report with the latest wave of data

Step 1: Create a new document and import your data

Step 2: Create dynamic time filters

The PowerPoint report consists of outputs showing either the last month of data or the trend of the last 13 months of data. Instead of re-creating filters for each wave, this can be automated by setting up a dynamic time filter.

To do that, go to the Ribbon > Insert > Filter > New Filter.

From the Data dropdown menu select the Date/Time type variable and under Operator select Within last period and define the time period of 1 Month. Change the label to LastMonth.

To set up a filter for the last 13 months, repeat the above process but this time set the With in: to 13 Months and change the Label to Last13months.

The above approach will also work for data sets with less than 13 months of data. For example, if the tracker only has 10 months' worth of data Displayr will add a month worth of data each month until reaching 13 months.

Step 3: Create data tables replicating the outputs in the PowerPoint report

Start by creating a page of results.

Next, create three tables showing months, gender, and age. To do this select each of the variables separately from the Data Set window and drag and drop it onto the page. By doing that Displayr will automatically create the table.

To show both percentages and counts for the first table select the table, go to the Object Inspector > Inputs > Statistics > Cells > tick Count.

Filter the table to show the last 13 months of data only by going to Inputs > Filter > Select the Last13Months filter. Repeat this step for the remaining two tables using the LastMonth filter to show the last month of data only.

Check the results against the figures in the PowerPoint report to ensure you have set-up the tables correctly.

The second PowerPoint slide consists of a sorted table, a trended table, and a text box with a base size description.

For automation purposes, it doesn’t matter on which page or where on the page the outputs are created. However to make the document easier to navigate and aligned to the PowerPoint report I created a page to correspond to each PowerPoint slide.

For that purpose, add a new page by going to the Ribbon and select Home > Pages > New Page.

To create a table which will auto-sort with each new wave of data:

  1. Go to this document.
  2. Select the table on the first page and click Home > Copy.
  3. Go into the Displayr document where you want the sorted table and press Home > Paste.
  4. Change the data selected for the table.

In case you need more than one auto-sorting table you can re-use this table by selecting the table and going to Home > Duplicate and changing the data in the duplicated table.

To create a trended table showing the last 13 months:

  1. Drag and drop the variable you wish to show in Rows onto the page to create a table.
  2. Select the table > Object Inspector > Data source > Columns > select the time variable (e.g. Month)
  3. Go to Inputs > Filter > Select the Last13Months filter

And, to create a Sample size description matching the PowerPoint report:

  1. Select Insert > More > Data > Sample Size Description.
  2. Click on the Complete Data Variable in the Object Inspector on the right, and choose the same variable as above
  3. Go to Inputs > Filter > Select the LastMonth filter
  4. To match the description used in the PowerPoint report you will need to customize the widget by going to Properties > R Code and replacing the last line of code with:

paste0("Sample size: n=",n)

Note that it’s not necessary to create charts to link the outputs to PowerPoint. It’s possible to use tables instead. What is necessary is to ensure that the layout of the data tables in Displayr and the PowerPoint chart match – that is that the rows and columns of tables are positioned in the same way.

To check the required layout, open your PowerPoint document, select the chart, right-click, and select Edit data.

In the above example, the table layout in Displary and PowerPoint don’t match and need to be aligned.

To do this you can either swap the rows and columns in PowerPoint or Displayr. It’s easier and faster to do it in Displayr by selecting the table and going to the Object Inspector > Inputs > Data Source > Switch rows and columns, and under Statistics > Cells > change Column % to Row %

Step 4: Linking the Displayr outputs to the PowerPoint report

The next stage of the process is linking the outputs to the PowerPoint report.

Every object that can be updated from a Displayr document has a GUID (Globally Unique Identifier code). To access the GUID select the object and go to Properties > GENERAL > GUID. Select the GUID by using your mouse by clicking and dragging and then right-clicking on it and selecting Copy.

For Displayr to update something in PowerPoint, it is necessary to record the matching GUID in the Alt Text field in PowerPoint. In PowerPoint select the corresponding object, right-click and select Edit Alt Text... Then paste the GUID into the Alt Text field as below.

Repeat this for all three objects on the first slide and the two charts on the second slide.

When it comes to the sample size description the process is slightly different as we have only set-up the second line of the text box content. If we were to add the GUID to the text box in PowerPoint Displayr would overwrite all of it.

Instead, we need to create two separate text boxes, one showing only the question label and the second only the sample size description. To do that: copy and paste the text box. In the first box delete the second line and in the second box delete the first line. Next, add the GUID information to the second box only.

Step 5: Updating the data set with the latest wave of data

You will need a file consisting of all waves of data. If your file only consists of the latest wave of data you first need to merge the files as outlined here.

To update the data set follow the below steps:

  1. Select the Data Set's name in the Data Tree.
  2. Press the Update button, and select the new file containing waves of data.

Displayr will automatically update all the outputs. In the example below, it added two waves of data, showing results up to December 2017.

Step 6: Updating the PowerPoint report with the latest wave of data

To update the PowerPoint report:

  1. From the Ribbon select Export > Document > PowerPoint.
  2. Select Update existing document and drag and drop the PowerPoint document created following the above steps into the blue box.
  3. Click Export.

Dispayr will scan the PowerPoint document comparing the GUID information in the document to the GUID information in Displayr. When matched Displayr will update the data.

A pop-up window will appear containing information on the changes made. In our example, Displayr updated 4 charts, 1 table, and one text box showing sample size.

Displayr will create a new PowerPoint document saving it in the same folder as the original document.

All six objects in our document have been updated showing the latest data.

If you have any questions or need help you can always contact the technical support team by dropping them an email at support@displayr.com. 

]]>
https://www.displayr.com/how-to-retrospectively-automate-an-existing-powerpoint-report-using-displayr/feed/ 0
Exporting to PowerPoint 3: How to make changes to existing PowerPoint reports https://www.displayr.com/exporting-to-powerpoint-3-how-to-make-changes-to-existing-powerpoint-reports/?utm_medium=Feed&utm_source=Syndication https://www.displayr.com/exporting-to-powerpoint-3-how-to-make-changes-to-existing-powerpoint-reports/#respond Thu, 12 Nov 2020 12:13:13 +0000 https://www.displayr.com/?p=26139 ...]]> This is the third blog in the series of posts about using Displayr to create and update PowerPoint reports.

In my first post, we covered the 10 advantages of creating PowerPoint reports in Displayr. The second post outlined the steps required to create a PowerPoint in Displayr from scratch and introduced how you can update an existing PowerPoint document.

Creating a report template and automating it for future reporting is a great way of saving time and working more efficiently. But more often than not that's not the end of it. In the vast majority of cases, reports evolve over time. Requirements change and reports need to be updated accordingly.

In this post, I will show you to use Displayr to make changes to your PowerPoint reports.

More specifically, this post will cover:

  • How updating works in Displayr
  • Add new slides to an existing PowerPoint report
  • Add new objects to an existing PowerPoint slide, and
  • Linking objects created in PowerPoint to Displayr

For the purposes of this post, an object refers to a chart, table, text box, or an image created in Displayr.

How updating works in Displayr

Updating in Displayr is based on GUIDs (Globally Unique Identifier code). Every object that can be updated from Displayr is assigned a GUID. The GUID can be found in the Object Inspector on the right of your screen under Properties > GENERAL > GUID. If you wish to copy the GUID, select the output and go to Copy > Copy GUID.

During the initial export (see Create a new document) the GUID of each object is recorded in PowerPoint in the Alt Text field.

This field is accessed in PowerPoint by right-clicking on an object and selecting Edit Alt Text...

When updating an existing PowerPoint document Displayr compares and matches GUIDs in the Displayr document to those in the existing PowerPoint deck. When matched Displayr updates the content of the object, while preserving the original PowerPoint design. For example, Displayr will update the data in charts and tables, it will update text within a text box, but not change its positioning, font size, or color.

In case Displayr can’t match the GUID number it won’t export the object. Displayr will only update the objects found in the PowerPoint document, without adding or removing any objects from it. You can also remove a GUID from a PowerPoint object in case you don't want it to update (e.g. a Title text box).

Add new slides to an existing PowerPoint report

To add a new slide to your report follow the below steps. For more details on how to create a PowerPoint report in Displayr see the previous post in this series.

  1. Add a new page in your Displayr document by going to the Pages menu and clicking on the + button that appears when hovering the mouse over an existing page.
  2. Create a page of results.
  3. Export the page to PowerPoint by going to Publish > Export Pages > PowerPoint > Export Selected Pages > Create new document > Export.
  4. Copy and paste the slide in the exported document to your initial PowerPoint document

A GUID has been assigned to all the objects on the new slide linking them back to the Displayr document. To reiterate, any objects not present in your PowerPoint report will not get exported when Updating an existing report.

Add new objects to an existing PowerPoint slide

The process of adding a new object to an existing PowerPoint slide is similar to adding a new slide.

  1. Create the object in Displayr, either by creating a new page or by adding to the page corresponding to the PowerPoint slide.
  2. Export the page with the new object to PowerPoint by going to the Publish > Export Pages > PowerPoint > Export Selected Pages > Create new document > Export.
  3. Copy and paste the new object to your initial PowerPoint report.

The exported object will have a GUID assigned which and can be updated at a later stage.

Linking objects created in PowerPoint to Displayr

In order to be able to link a PowerPoint object to Displayr the two objects need to match. For example, the layout of the data table within the PowerPoint chart will need to match the layout created when exporting a slide from Displayr. It might take a couple of tries to get it right.

  1. Create an object in Displayr matching the PowerPoint object
  2. Select the object and go to Copy  > Copy GUID.
  3. In the PowerPoint document, select the object you wish to link, right-click > Edit Alt Text... > CTRL+V to input the GUID.

If you have any questions or need help you can always contact the technical support team by dropping them an email on support@displayr.com. 

]]>
https://www.displayr.com/exporting-to-powerpoint-3-how-to-make-changes-to-existing-powerpoint-reports/feed/ 0
Easy Functions for Automating Filters and Rebasing https://www.displayr.com/easy-functions-for-automating-filters-and-rebasing/?utm_medium=Feed&utm_source=Syndication https://www.displayr.com/easy-functions-for-automating-filters-and-rebasing/#respond Thu, 12 Nov 2020 00:31:01 +0000 https://www.displayr.com/?p=26020 ...]]> We have already covered how to create and apply filters using Displayr's built-in functions and code. See, for example, 5 Ways to Create a Filter in Displayr, How to Filter Data in Displayr and How to Use Basic R Code for Creating Filters. Below we will now outline the best functions for automating these tasks.

Creating binary filters from selected data

When creating a single filter variable, you can simply go to Insert > Filter > New Filter and choose the appropriate category. However, repeating this step for each category can potentially be time-consuming. Instead, creating many filters quickly is as easy as selecting the relevant variables and going to Insert > Filter > Filters from Selected Data. This will produce a filter for each category in the source question. Note that if you merge any categories via the related table, they will instead flow through to these filters, and any that have been removed will be excluded.

The grouped filters will appear below the source question under Data Sets.

Grouped filters

A second use for this function is when you have Binary - Multi (Compact) or 'Max-Multi' questions that you wish to convert to binary data. This will in turn produce a single variable for each category. You can then untick the Usable as a filter option in the output if this is not needed.

Creating combo and list box controls and filters

While it generally takes a few steps to connect filters to a control box, there are shortcut options available.

In this example, I have the following grid of bars chart showing preferred cola over time:

Filter

To automatically apply a control filter, you should do the following:

  1. Select the output(s) and go to Insert > Filter > Combo Box (Drop-Down) Filters on an Output or List Box Filters on an Output. We will choose a list box.
  2. Next, choose the single-response variables you wish to use for the filter. Here I have chosen 'D1 – Age' and 'D3 – Gender'. Note that for each question selected, a separate control box will be created.
  3. If you are creating combo boxes, you will need to additionally select Yes to allow the user to select more than one category in each control box.
  4. A new combined filter variable called 'List Box Filter D1 – Age + D3 – Gender' has now appeared under Data Sets:
    List Box filter
  5. 2 list boxes also appear on the page with the filter automatically applied to the chart:
    List box chart filters

Creating text box controls and filters

An alternative to a combo or list box is a text box filter. You can use this for filtering lists of verbatims or any other output for that matter. The process is almost the same via Insert > Filter > Text Box Filters on an Output except for 2 steps:

  • In step 2 above you will only have the choice to select text variables for creating the filter.
  • In step 3 you will be asked if you want the filter to ignore case, that is, it doesn't matter whether you use capital letters or not.

The result will be a text field that you can type into to filter the other outputs. In the below example, we have based our text filter on an open-ended cola awareness question. When we then type "cola" into the field, it automatically filters the text question and the chart based on those who wrote "cola" in their verbatim response.

Text box filters

Rebasing multiple-response data to the NET

There are often situations when missing value settings in your data set are incorrect for multiple-response questions due to respondents skipping the question. This can lead to the NET not being 100%.

In the below example, there are 11 records out of 725 which have no data so we want to rebase the question out of those who actually answered it. This can be easily rectified via Insert > Utilities > Create New Variables > Rebase Multiple Response Data in Variable(s) to NET. This option will create a new rebased question at the bottom of your Pages section and provide the option of hiding the incorrect version in the prompt.

Rebase to NET

Rebasing questions based on other questions

Data exports can often have limitations with how missing values can be set when questions are filtered within the survey. This can leave the data file with incorrectly based questions. Alternatively, you may simply want to rebase your data differently on awareness or usage, for example.

In the following example, we have a multiple-response grid, Q14, where the respondent was asked to identify what supermarket brands correspond to specific attributes.

Binary - multi grid

The table is currently based out of total sample but we would like to base it out of Q8, that is, whether they have shopped at these stores in the past 12 months:

Past 12 month supermarkets

The steps to follow are below:

  1. Go to Insert > Filter > Filter One Question by Another Question
  2. When prompted, select the question you want to filter then press OK. We will select Q14 here.
  3. When prompted, select the question to use as a filter then press OK. Here we will select Q8.
  4. If the question to be used as a filter is tagged with Usable as a filter, you will be asked whether you wish to simply apply this filter (Yes) or create a variable for each category (No).
  5. If the question to be filtered has multiple variables, you may be asked whether you wish to split each variable by the filter categories (Yes) or simply apply the matching filter (No).
  6. If you want Displayr to automatically match up the filters based on the source labels, select Yes.
  7. As our labels match perfectly, Displayr will generate a new version of our question with the correct basing called 'Q14 filtered by Q8 Visited last 12 months': Filtered variables

The table looks like this:

Filtered variable table

  1. Note that if you select No in step 4 or there are inconsistencies with labels and/or additional items, you will need to manually select the variables that correspond to each filter category via the prompts.
  2. You can then choose whether to keep or remove the extra items that were not matched.

To avoid these extra steps, you can simply adjust the variable labels under Data Sets to provide consistency. If the difference, however, is only that the filter question also includes a "None of these" option, the easier solution is to copy this question via Home > Duplicate, go to DATA VALUES > Values, and set this option to Exclude from analyses. Now you can use this question instead and the items will match.

Note that, much like with the Filters from Selected Data option, here Displayr will also respect any merged or removed categories when creating the new variables.

Filtering variables

A second use case for Filter One Question by Another Question is for filtering your variables to allow for a 3-dimensional table.

Below is a table of how likely respondents are to recommend buying fruit and vegetables as an average crossed by the last supermarket they visited.

Numeric cross-break table

Although these 2 questions are easily crossed, you may still want to cross break the table further. This is where this script comes in handy.

As with the first few previous steps, you simply need to do the following:

  1. Go to Insert > Filter > Filter One Question by Another Question
  2. When prompted, select the question you want to filter then press OK. We will select 'Q12 Fruit & Veg'.
  3. When prompted, select the question to use as a filter then press OK. Here we will select 'Q10 Last visited supermarket'.

The result is a simplified table which can now be further filtered by applying a banner question, such as gender:

Filtered numeric variable table

Splitting sample

Displayr also offers you an automated solution for splitting your sample for predictive modeling such as regression.

The first option via Insert > Filter > Filters for Train-Test Split randomly creates a training and a testing filter. This defaults to a 70% / 30% split but you can change this in the prompt.

The second option via Insert > Filter > Filters for Train-Validation-Test Split randomly creates a training, validation, and testing filter. This defaults to a 50% / 25% / 25% split but you can likewise change this in the prompt.

Another use for this function is for effectively removing additional records from your data set if you have gone over your survey targets. In this case, you could use the Filters for Train-Test Split option and set the training sample accordingly.

If you wanted to remove 5% then you could use either 95 or 5 for the prompt and choose the appropriate filter:

Set sample split

This results in 2 grouped filters at the top of your data set:

Split sample filters

]]>
https://www.displayr.com/easy-functions-for-automating-filters-and-rebasing/feed/ 0
How to Filter Rows and Columns in Visualizations and Tables without Code https://www.displayr.com/how-to-filter-rows-and-columns-in-visualizations-and-tables-without-code/?utm_medium=Feed&utm_source=Syndication https://www.displayr.com/how-to-filter-rows-and-columns-in-visualizations-and-tables-without-code/#respond Wed, 11 Nov 2020 21:46:10 +0000 https://www.displayr.com/?p=25937 ...]]> In Displayr you can manipulate rows and columns directly in any Visualization or Paste/Enter Table output created via the Insert menu.

This allows you to choose what table dimensions should be included in the final output without having to make changes to the source table. If you wish to display a table instead, referencing your source table via a Paste Table (Autofit) R output provides the same manipulation options.

Let's now go through the different types of filtering possible under the Inputs > ROW MANIPULATIONS and COLUMN MANIPULATIONS sections of these outputs.

FIltering

Remove rows and columns with no data or small sample size

1. Hide empty rows/columns
This option removes any row or column that has no data in it.

2. Hide rows/columns with small sample sizes
Instead of only removing blank data, you can also specify a Sample size cut-off to remove rows and columns that do not meet this threshold. Note that the statistic used for sample size will be based on your source table, so Column Sample Size, Column n, Sample Size, or Base n must be included.

Display fixed rows and columns

3. Select rows/columns to show by > Type row names or indices
If you wish to show only specific rows/columns then you can list either the name or index number of the desired row/column under Rows/Columns to show, separating each item by a comma.

4. Rows/Columns to ignore
By default, NET, Total, and SUM are set to be ignored from your output but you can change this or add to the list by referencing the name of the row/column, again separating each item by a comma.

Display dynamically selected and auto-updating rows and columns

5. Select rows/columns to show by > Choosing from Combo Box or List Box control
When you have numerous brands or statements in a table, you often want to let the viewer select the items they are interested in via a Combo Box or List Box. This option will work seamlessly with any visualization or pasted table output when you select the appropriate control box under Rows/Columns to show. The result will be an output that automatically changes what data is displayed based on the user selections.

FIltering

6. Number of rows/columns from top/left to show
If you have additional rows/columns in your source table and only want to show the first 6, for example, then setting this to 6 will always show these rows/columns even if your data updates. In this example, only 'Coca-Cola' to 'Pepsi Max' have been included from the table rows.

FIltering

7. Number of rows/columns from bottom/right to show
This option is the same as the above but works the opposite way. If you have quarterly time series data and you want to only show the last 2 quarters i.e. the last 2 columns of your table, setting this to 2 will restrict the output to only show these columns. If your data then updates with additional months, this option will automatically adjust.

FIltering

]]>
https://www.displayr.com/how-to-filter-rows-and-columns-in-visualizations-and-tables-without-code/feed/ 0
Exporting to PowerPoint 2: How to Create PowerPoint Reports in Displayr https://www.displayr.com/how-to-create-powerpoint-reports-in-displayr/?utm_medium=Feed&utm_source=Syndication https://www.displayr.com/how-to-create-powerpoint-reports-in-displayr/#respond Tue, 10 Nov 2020 13:55:01 +0000 https://www.displayr.com/?p=26050 ...]]> In this post, I will show you how to create a PowerPoint report using Displayr.

The idea is to get the vast majority of analysis and data outputs created in Displayr before exporting the document to PowerPoint and finalizing the report. I will also show you an easy way to make changes and update your PowerPoint reports.

This approach can be used to create one-off reports quickly and efficiently, but it's particularly powerful for setting up and automating projects that require regular reporting, such as tracking studies or multi-country projects.

Depending on the design requirements you can either create a new Displayr template or use an existing template. Alternatively, you can skip this step and instead use a PowerPoint template. In the below example I will use the latter approach. All you need to get started is a Data Set and a PowerPoint document template.

Step 1: Create a new document

Step 2: Create a page of results

In the example below I created a page containing demographic information. I created three different charts for Gender, Age, and Region.

Image_1

Step 3: Change the PowerPoint export format settings

By default, charts will be exported to PowerPoint as static images. However, once exported to PowerPoint I want to be able to edit the charts.

  • To change the default setting and export all charts as editable charts, I need to change the export settings by selecting the chart and going to the Object Inspector > Properties > POWERPOINT EXPORT > Format and selecting Microsoft Chart.
  • Next, I want all the charts to be exported using the style of charts selected in Displayr. I can do this by changing Export as under Properties > POWERPOINT EXPORT > Export as to Match Displayr.
  • To apply the change to all charts in the document, I selected Set as default.

Note, if I selected a specific chart type, such as 3D Pie, from the Export as menu and then clicked Set as default, all charts in the document would be exported to PowerPoint as pie charts.

Step 4: Export to PowerPoint

  • Select Publish > Export Pages > PowerPoint > Create new document > Export.

Displayr will export the page as a PowerPoint document placing each page of the Displayr document on an individual slide. In this case, I have exported only one page, resulting in one PowerPoint slide. The slide consists of the text box and three editable charts.

Step 5: Transfer the slide to your PowerPoint template

The exported PowerPoint document matches the design and layout of the Displayr document. However, I wish to use a different PowerPoint template. As mentioned earlier, it is possible to set up a specific template in Displayr, but for the purpose of this post, I want to show you how simple it is to use a pre-existing PowerPoint template, such as your company’s or your client’s template.

To do that, I opened my PowerPoint template and copy-pasted the slide from my exported document to my template. By default, PowerPoint inserts the slide using the Destination Theme Paste option – applying the template design. In our example, the chart colours changed.

Step 6: Modify the slide in PowerPoint

For this particular example, I have resized and moved the charts around. I also removed the question text and base information, hiding the ‘Less than 18 years’ data series, and changing the Chart Type designs in PowerPoint.

Whilst I could have done most of these changes in Displayr, the aim of this example is to show that this can also be done in PowerPoint without losing the ability to update the charts at a later time and keep the design intact. My PowerPoint slide now looks like this:

Step 7: Making changes to the PowerPoint report

Now, let’s say that we wish to make a change to our report and show Region and Age split by Gender. I could do this by going to my data tables, finding the data, and manually adding it to the PowerPoint chart. After all, we can edit the chart exported from Displayr.

But there’s a better way: I can make the change in my Displayr document and Displayr will update the report for me.

To make the change, I returned to my Displayr document, selected my Region chart, and added Gender by going to the Object Inspector > Inputs > DATA SOURCE > Columns.

I then repeated the same process for my Age chart to get the below output.

I also updated the title text, adding the words by Gender, to reflect the updated charts.

Step 8: Updating the PowerPoint report

To update the PowerPoint report, go to Publish > Export Pages > PowerPoint, but this time instead of creating a new document I selected Update existing document. I then dragged and dropped my PowerPoint document created in Step 6 into the blue box and clicked on Export.

Displayr updated the document and a pop-up window appeared containing information on the changes made.

In this example, Displayr updated the text box and three charts as per the below. The updated document reflects all the changes we made to our document during the previous step.

The approach outlined above has a wide range of uses from running analysis and creating a single PowerPoint report to full-scale automation of PowerPoint reporting.

In the next blog in this series, I will show you how to make changes to your PowerPoint reports built-in Displayr.

If you have any questions or need help you can always contact the technical support team by dropping them an email at support@displayr.com. 

]]>
https://www.displayr.com/how-to-create-powerpoint-reports-in-displayr/feed/ 0
Working with Principal Components Analysis Results https://www.displayr.com/working-with-principal-components-analysis-results/?utm_medium=Feed&utm_source=Syndication https://www.displayr.com/working-with-principal-components-analysis-results/#respond Tue, 15 Sep 2020 00:28:57 +0000 https://www.displayr.com/?p=25184

Principal Components Analysis (PCA) is a technique for taking many variables and creating a new, smaller set of variables. These aim to capture as much of the variation in the data as possible. In this post, we show you how to save, access, and export the PCA results and output. For information on how to set up and run the PCA, see How to Do Principal Components Analysis in Displayr.

Principal Component Loadings

The default PCA output is the Principal Components Loadings table which shows one row for each of the original variables. From the same example used in How to Do Principal Components Analysis in Displayr, each of the 8 new variables or components identified by the PCA appears in the columns. The cells of the table show figures referred to as loadings.

These loadings represent the correlations between the new variables and the original variables. As correlations, they will always range between -1 and 1. A score towards 1 indicates a strong positive relationship, a score towards -1 indicates a strong negative relationship, and scores closer to 0 indicate weaker or non-existent relationships. The output omits smaller correlations. However, the bar remains to indicate their values. To display these values, deselect the Suppress small coefficients checkbox.

PCA Component Loadings Table

Saving Component Scores

To save a set of respondent level component score variables from the PCA output, select:

Insert > Dimension Reduction > Save Variable(s) > Components/Dimensions

This creates a set of variables for each component at the top of the Data Sets tree grouped together as a question called Scores from dim.reduce. These scores are standardized respondent level component scores with a mean of 0 and standard deviation of 1 across the entire sample. You can then rename the component variables based on the attributes to which they most closely correlate. To do this, select each of the component variables group under Scores from dim.reduce in the Data Sets tree, right-click, and select Rename.

The new variables are linked back to your PCA output. This means that if you change any of the input options and then calculate the PCA again, the scores will also update automatically based on the updated analysis. If you change the number of components in the analysis, you should delete the variables for the scores in the Data Sets tree and save a new set of scores.

As an alternative, you can also save the component score variables as follows:

1. From the Insert menu, select R > Numeric Variable
2. In the R CODE field, paste in the code here (where dim.reduce is the name of the output that you've previously created):

[sourcecode language="r"]
fitted(dim.reduce)
[/sourcecode]

3. Click the Calculate button to run the code.
4. Allocate a Question Name and Label in GENERAL.

Exporting PCA Results

To export the Rotated Loadings table, select the PCA output and then from the menu select Export > Excel. Select Current Selection and then click the Export button. An Excel file containing the loadings table will be exported.

You can also generate an R output of the loadings table by selecting Insert > R Output (in the Analysis group) from the menus, then enter the following R code and click the Calculate button.

[sourcecode language="r"]
dim.reduce$rotated.loadings
[/sourcecode]

This will generate an unsorted R table containing the loading coefficients which can also be exported to Excel. You can adjust the number of decimal places using the decimal options on the Appearance menu. Note that this is based on a PCA name dim.reduce which is the default PCA object name in Displayr. If you've renamed your PCA analysis, you'll need to make the change in the code as well.

If you instead want to export the respondent level component scores, you can do so by creating a raw data table and then export this to Excel. To do this, from the menu select Insert > More > Tables > Raw Data. Next, select each of the component scores from the Variables drop-down list in the Object Inspector. Click the Calculate button to generate the output. This output can now be exported by selecting an option from the Export menu.

]]>
https://www.displayr.com/working-with-principal-components-analysis-results/feed/ 0
How to Do Principal Components Analysis in Displayr https://www.displayr.com/how-to-do-principal-component-analysis-in-displayr/?utm_medium=Feed&utm_source=Syndication https://www.displayr.com/how-to-do-principal-component-analysis-in-displayr/#respond Wed, 02 Sep 2020 01:09:25 +0000 https://www.displayr.com/?p=24710

Data setup

Principal Components Analysis always views data numerically. This means that you need to be careful with the question Structure assigned to your variables to ensure the analysis views their numeric values. The variables in a PCA should be part of a NumericNumeric - Multi, or Binary - Multi question.

In most cases, you should set your variables up as Numeric or Numeric - Multi. The variables do not need to be grouped together. Remember, they could come from different questions, but they should all be on the same scale (that is, don’t mix 5-po int scales with binary variables or 10-point scales). Binary - Multi is appropriate to use when the data are binary.

If your variables are not set up as NumericNumeric - Multi, or Binary - Multi, you can:

  1. Locate the variables in the Data Sets tree.
  2. (Optional) Make new copies of the variables by selecting them, and from the menu choosing Home > Duplicate.
  3. From the Object Inspector on the right side of the screen, change the Structure to either:
    1. Numeric, if there’s a single numeric variable,
    2. Numeric - Multi, if you have multiple numeric variables that are grouped together, or
    3. Binary - Multi, for binary variables.

In this article, I am using an example of a 5-point scale (called “Q23. Attitudes”). We asked several statements about our respondents' mobile phone use. Originally, the variables were set up as a Nominal - Multi question, which is typically how looped scales like this will appear in Displayr. In my screenshot below, I made a copy of the question for use in the PCA, and then set the Structure to Numeric - Multi.

Data Sets Tree

Creating the Principal Components Analysis

To create the PCA in Displayr:

Object Inspector

  1. Select Insert > Dimension Reduction > Principal Components Analysis.
  2. In the Object Inspector on the right side of the screen, choose the variables that you want to analyze in the Variables box.
  3. Tick Automatic, which ensures the PCA will remain up to date when the data changes or when you change the settings.

The output from the PCA is what is known as a loadings table. This table shows one row for each of my original mobile phone statement variables (there are 23). Each of the 8 new variables identified by the PCA appears in the columns. The cells of the table show figures referred to as loadings.

These loadings represent the correlations between the new variables and the old variables. As correlations, they will always range between -1 and 1. A score towards 1 indicates a strong positive relationship, a score towards -1 indicates a strong negative relationship, and scores closer to 0 indicate weaker or non-existent relationships. The output omits smaller correlations. However, the bar remains to indicate their values. Change this by toggling the Suppress small coefficients box.

PCA Component Loadings Table

The table is sorted in a way that makes it easy to work out what the 8 new variables mean. The first variable (“Component 1”) shows a strong correlation with the variables for “Want to view videos”, “Want video phone”, “Want to play music”, “Like fast internet on phone”, and “Do mobile banking”. We conducted this study before the age of the smartphone. At the time, these higher-technology features were uncommon in phones.

This new variable thus represents an underlying factor of desire for better technological capabilities in phones. The second variable strongly correlates with variables that reveal a desire to stay in touch and connected. The third variable represents an attitude that phones need only make calls or have basic functionality, and so on.

The output also tells us a number of key bits about the analysis:

  • The 8 components represent 57.7% of the original variance in the data. You inevitably lose some information when you reduce variables like this.
  • The first variable (“Component 1”) accounts for 12.8% of the variation. The second accounts for 8.63% of the variation, etc. The sort order goes from most variation to the least variation.
  • The footer contains additional sample size information and settings info.

In the next few sections, I’ll explain some settings that we didn’t change, and how to save the new variables to your data set so you can use them elsewhere.

Determining the number of components

In the analysis above, the PCA automatically generated 8 variables. It did this using a heuristic known as the Kaiser rule, an option in the Rule for selecting components drop-down menu. This is a commonly used rule, but you can also choose to use two other methods:

  • Number of components. Choose this option if you want to choose the number of components to keep.
  • Eigenvalues over. Eigenvalues are numbers associated with each component, and these are listed at the top of each column. This setting lets you specify the cut-off value for components.

Rotations

In the analysis above, I used a technique called Varimax rotation, Displayr’s default option in the Rotation method drop-down menu. The concept of the rotation can be a bit abstract to talk about without getting into the mathematics of the technique. Putting it simply, the PCA problem can have an infinite number of solutions which all capture the same amount of variation in the data. The rotation tries to find which of those many solutions is the easiest to write down an interpretation for, by writing them in a way so that as many loadings are as close to zero (or to a value of 1) as possible.

If you have a favorite rotation method to use, the Rotation method drop-down menu contains several other options. They are all described in mathematical terms, so discussing them here would not add much value if you don’t already have a preferred technique. In my experience, Varimax seems to be the most popular.

Saving variables

To use the results of the PCA in another analysis you need to save the variables to your data set. To do so:

  1. Have your PCA output selected on the page.
  2. From the menu select Insert > Dimension Reduction > Save Variable(s) > Components/Dimensions. This will add the new variable set to the top of the Data Sets tree.
  3. (Optional) Right-click on the row labels in the variable set and Rename them, to make the components more recognizable.

Now, you can create a table from the component scores. The table will be full of 0s, indicating that the average score of each is zero. Don’t be alarmed! This occurs because the variables are standardized – with a mean of zero and a standard deviation of 1 – which is the standard technique. If you create a crosstab with another question, then the variation between variables will become more apparent. For instance, I renamed my components and created a table with the Age groups from the study:

PCA Components by Age

Rather unsurprisingly, the younger people have higher scores on the “Want technology” and “Cost-sensitivity” components, and a much lower score on the “Only use the basics” component.

These new variables can be used just like any other in Displayr. Once you are happy with your new components, go back to the PCA output, and untick the Automatic box. This will prevent any changes to the components. If you modify your PCA later and change the number of components in the solution, you should delete the saved variables and run Insert > Dimension Reduction > Save Variable(s) > Components/Dimensions again.

Hopefully, you find that Principal Components Analysis is easy to do in Displayr, and by saving the variables you can use it to complement your other analyses. Don’t forget the three main steps: set up your data correctly, create the analysis output, and use the output to save your new variables. Good luck and happy dimension reducing!

]]>
https://www.displayr.com/how-to-do-principal-component-analysis-in-displayr/feed/ 0
Optimizing your Conjoint Analysis Simulator in Displayr https://www.displayr.com/conjoint-analysis-simulator-and-optimizer-in-displayr/?utm_medium=Feed&utm_source=Syndication https://www.displayr.com/conjoint-analysis-simulator-and-optimizer-in-displayr/#respond Mon, 31 Aug 2020 02:07:49 +0000 https://www.displayr.com/?p=25041 ...]]> The choice simulator is one of the main objectives of choice-based conjoint analysis. This allows you to predict the effect of different scenarios on preference or market share. For this case study, we have used the cruise ship data set which Sawtooth supplied in their 2016 modeling competition. This post assumes you have already created your simulator using a conjoint model in Displayr.

Modifying your simulator

In our example, we have created a basic simulator with 3 alternatives:

simulator

There are various ways of modifying your simulator, including weighting and making adjustments to reflect market share. Here, we intend to add a combo box for filtering our preference shares by a specific survey question. We will use likelihood to travel in the next 10 years.

Connecting your simulator to a combo box

The best location for this combo box is on the Page Master which is accessible via Appearance > Page Master. This will allow the same control to appear on every page using this template while retaining the user selections.

We can create our own title page by selecting Title Only and pressing Home > Duplicate. We will rename this 'Page with Combo box'.

page master

To add the control item, go to Insert > Control > Combo Box. We then connect Items from to an existing table for likelihood to travel. Alternatively, you can just paste the label options separated by a semi-colon into Item list. In this case, we will also need to delete the default items there. Next, we change Selection Mode to Multiple selection. You can also optionally change the name under Properties > GENERAL.

We can now go back via Appearance > Normal and change the simulator page via Home > Layout > Page with Combo box.

With Displayr, you can easily filter data using a combo box with an R variable. As we are using a single-response question but wish to allow multiple selections, we need to first make it binary via Insert > Filter > Filters from Selected Data. You should then select the appropriate respondent data file under Data Sets and go to Insert > R > Numeric Variable. For a multiple-response combo box, the filter formula to use in the R CODE field is as follows:

rowSums(`Question_name`[, combo_box_name, drop = FALSE]) > 0

The Question name can simply be dragged over to this field from Data Sets to look like this:

rowSums(`Q3: How likely is it that you will take a cruise vacation sometime in the next 10 years? - Filters`[, Combo.box, drop = FALSE])> 0

This code will filter Q3 to the items selected in 'Combo.box'. It will then only include the respondents who fall into these categories.

Next, tick Usable as a filter. We will name this 'combo.filter'. Now you can go back to your simulator page and apply 'combo.filter' to your 'preference.shares' output under FILTERS & WEIGHT > Filter(s).

combo box filter

Below is the formatted version of our simulator:

formatted simulator

Weighting your data by alternative-specific respondent preference shares

Displayr allows you to complement your simulator with further visualizations that help tell the story of your data. One way to make further use of our simulator is to weight our demographic questions by a selected alternative's preference share results.

We will begin by making a new page with the same default combo box via Home > New Page > Page with Combo box. We will now copy the 'preference.shares' output from the simulator page via Home > Duplicate and drag it over to the new page to get the respondent-level results.

First, we need to remove the combo box filter from the output. We then need to paste the below code at the bottom of Properties > R CODE:

preferences.by.respondents = data.frame(matrix(resp.shares, ncol=3))
colnames(preferences.by.respondents) = c("Alternative 1","Alternative 2","Alternative 3") 
preferences.by.respondents

You will need to change the 'ncol' reference and column names to match the number of alternatives in your simulator.

The next steps involve creating the combo box filter. In the menu ribbon, select Insert > Control > Combo Box and paste Alternative 1; Alternative 2; Alternative 3 in Item list. I have named this combo box 'cCruise'.

Next, create the filter variable via Insert > R > Numeric Variable and paste the below into the R CODE field:

preferences.by.respondents[, cCruise]

This code will filter 'preferences.by.respondents' by the alternative number selected in 'cCruise'. Once you tick Usable as a weight, this can be applied to your outputs under Inputs > FILTERS & WEIGHT > Weight.

This allows you to add visualizations for various demographic questions with the combo box filter and weight applied to the source tables. Remember to drag the tables off the page and select Appearance > Hide. You can also use a variety of conjoint-specific visualizations, such as a demand curve for the price attribute.

preference share weighting

Creating an optimizer

An alternative to creating an online simulator is to create what we call an 'Optimizer'. Unlike a simulator, an optimizer allows multiple selections per attribute and generates multiple-preference share combinations at the same time.

To create an optimizer, you can either select your conjoint analysis output and click Inputs > SIMULATION > Create optimizer or go to Insert > More > Conjoint/Choice Modeling > Optimizer from the ribbon. You will need to then specify the number of alternatives and whether you wish to include alternative-specific attributes. We will choose 3 here and disregard the alternative attribute. This will create a page called 'Optimizer'.

optimizer

Similarly, we will also apply our combo box filter to the preference share output on this page.

Again, you can format the page objects as desired. In this case, an Autofit table provides more flexibility for the summary preference share table as you can easily drag the edges to align with the optimizer's columns. You can create this via Insert > Paste Table, ticking Autofit, and selecting this page's preference share output under DATA SOURCE.

Due to the varying size of the table, we can fix the height to ensure it adds a scroll bar. We will add row.height = "15px", to Properties > R CODE where the row specific fields are.

autofit table

We can now select the original output, drag it off the page and press Appearance > Hide to ensure it remains hidden from the published version of the document.

Using your optimizer

One specific use case for the optimizer is fixing the options for the second and third alternatives while selecting multiple options for the first alternative. In the first column, we will select all the options under Room, Amenities, and Price to generate the 30 combinations for the multi-selected combo boxes.

formatted optimizer

A benefit of autofit tables for this scenario is we can automatically pre-sort the table from highest to lowest by the first column. Simply go to Inputs > ROW MANIPULATIONS, tick Sort rows, place '1' in Column used for sorting rows, and tick Sort in decreasing order.

You can see the finished document here.

]]>
https://www.displayr.com/conjoint-analysis-simulator-and-optimizer-in-displayr/feed/ 0