+1 vote

From the above sample data, I need to calculate % complete for the order number 1.

Calculation for complete: (total number of points for status 'Delivered' / total number of points)*100

The result should be 57%

Can someone help me with the calculated field?

Jul 25, 2018 in Tableau 673 views

## 1 answer to this question.

0 votes
SUM(IIF([Status]="Delivered",[Point],NULL)) / SUM([Point])

I assume that your column named Order No. extends all the way down each row (i.e., each row should have a 1 as Order No. but the screenshot does not show that.

Also, the above only works if the status of "Delivered" is consistently cased, which it is not in the screenshot. If it is not consistently cased, wrap [Status] in an Upper function:

SUM(IIF(UPPER([Status])="DELIVERED",[Point],NULL)) / SUM([Point])
answered Jul 25, 2018 by
• 10,240 points

0 votes
1 answer

## How can I calculate the median of sales price using 3 variables in Tableau

First let me clarify things for you. ...READ MORE

0 votes
2 answers

## How can I add text in the centre of a Donut Chart ?

Hi, You can read this for creating a donut ...READ MORE

0 votes
0 answers

## How can I sort date field in presence of another date field in Tableau?

Goal: Sort the new ship date in ...READ MORE

0 votes
1 answer

## How to calculate the percent of records within a group in tableau?

You can click the measure SUM(Number of Records) and ...READ MORE

0 votes
1 answer

## Calculated filed with if-then

Below is the required code:  IF (NOT ISNULL([test2])) ...READ MORE

0 votes
1 answer

## How to calculate profit when cost and revenue are in same column?

You can create the following calculated fields: Profit: SUM(IIF([account_category] ...READ MORE

0 votes
1 answer

## Creating a calculated field with LOD expression

Go ahead and try the following three ...READ MORE

0 votes
2 answers

## Calculation issue: Distinct sum in Tableau

I feel the easiest way is to ...READ MORE

0 votes
1 answer

## How can I count the aggregate function in Tableau

Create two calculated fields one for 100's ...READ MORE

+1 vote
1 answer

## How can I find the time difference between two columns

Based on the data you showed, I'm ...READ MORE