(LOD) Make Measure Value Fixed Regardless of Dimension in the Visual

viavi
New Member

Hello, I want to share my knowledge regarding Level of Detail (LOD) - Fixed as in the features in Tableau.

Here's an example:

  1. DATA
7062dd01-09ae-4584-a0f3-8c9071fd7055.png
Example

In this case, I want to get the percentage value of each Indicator compared to its Revenue value, for example COGS to Revenue (formula: %Value=COGS value/Revenue value).

 

Step 1.

87fd5916-7958-4b5b-8d14-c8e509ae9c65.png

Create custom measure with filter by Indicator = Revenue

then Save and hide from visualization. 

0f9708c5-bf6a-4e07-8877-adcf14073341.png
Create custom measure “sum_revenue”

Step 2.

Create table calculation with this calculation :

sum(view_table.custom_field)

then Save and hide from visualization. 

f91897d7-f27e-40f6-b5d5-dde67b5f89b1.png
Create Table Calculation “revenue”

Step 3.

Create table calculation for %Value with this calculation :

sum_value/revenue

then Save and hide from visualization. 

b0826514-ed83-4bd9-bbbb-73cccebd1043.png
  1. VISUALIZATION
a12a83cd-9d66-4604-ada4-6101a8b26d33.png
Example the visualization​​​​

Regarding to the visualization, I want to hide the Revenue indicator.

First, the thing to note for this is don’t use filter ! Because it will affect the Revenue value, so use Limit Displayed Rows on Edit Visualization (Plot Tab)

d0e81078-4ca8-4fb0-a4ad-3b12828c0c44.png
Limit displayed rows

I choose hide first rows because the Revenue value has sorted on the first row.

Hope this can help your issue!

Via

1 0 2,259
0 REPLIES 0
Top Labels in this Space
Top Solution Authors