How we Reduced 98.9% Load Time for a Tableau Viz that used Multiple OR Conditions?

Dipti MDipti M
2 min read

If you don’t write efficient calculations, it can slow down your dashboard.

In this article, we will show you how to speed up OR statements with multiple conditions in Tableau.

You can also look this video to see how we did it!

The Workbook Loaded in 41 Seconds

The dataset had information about flights.

We wrote a simple calculation to compare a value against a list of values:

OR Calc

The workbook took 41 sec to load.

The above calculation has a series of conditions that get evaluated one by one.

The more conditions you have, the more time it takes.

The more rows (data) you have, the more time it takes.

We Modified the Calculation to use ‘IN’ function.

IN statement directly compares a dimension against a list—much simpler & faster.

So, we modified the calc to use IN statement instead of the OR statement.

IN Calc

Now, the same workbook took 29 sec to load in Tableau—that is 29% less time.

OR statement

To improve further, we switched to an Extract connection.

IN statement

Then, it took just 0.43 sec—98.9% less time!

To Conclude

When you want to compare a value against a list of values, IN function would perform better than OR function.

At Perceptive Analytics, we help organizations build a solid data foundation with our Power BI consultant expertise, scalable Power BI consulting solutions, and end-to-end Tableau Consulting Services that drive actionable insights. With 20+ years of experience, we transform business goals into intelligent analytics outcomes.

0
Subscribe to my newsletter

Read articles from Dipti M directly inside your inbox. Subscribe to the newsletter, and don't miss out.

Written by

Dipti M
Dipti M