Skip to content

Commit

Permalink
[update]: removal dependencies on dimension prefix
Browse files Browse the repository at this point in the history
  • Loading branch information
hongkuiw committed Oct 1, 2021
1 parent bf55f62 commit eed58c8
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions preview/big-number-breakdown/main.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
// ANCHOR: Global Input Parameters
// NOTE: this is the naming to follow in .lkml

const inputDimensionBreakdownNameLookML = "_breakdown";
const { tidy, select, distinct, arrange, desc } = Tidy;

const visObject = {
Expand Down Expand Up @@ -176,7 +175,7 @@ const visObject = {
var pointHeightResponsive = parseInt((highchartsFigureHeight / dataRecords.length) * 0.45);

var viewName = queryResponse.fields.dimensions.length > 0 ? queryResponse.fields.dimensions[0].view : queryResponse.fields.measures[0].view;
var dimensionName = viewName + "." + inputDimensionBreakdownNameLookML;
var dimensionName = queryResponse.fields.dimensions[0].name;
dimensionMetaInfoValue = getFieldMetaInfoValue(queryResponse, dimensionName);
breakdownName = dimensionMetaInfoValue[0].label_short;
breakdownDescription = dimensionMetaInfoValue[0].description;
Expand Down

0 comments on commit eed58c8

Please sign in to comment.