Skip to content

Commit

Permalink
Merge pull request #38 from qlik-oss/DEB-157/NineMeasures
Browse files Browse the repository at this point in the history
1 Dim and 9 Measures OR 2 Dim and 8 Measures
  • Loading branch information
AlbertBackenhof authored Apr 10, 2019
2 parents 57c4b12 + c57b0ed commit 02bba4a
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,16 @@ export default {
},
data: {
dimensions: {
max: 3,
max: function (nMeasures) {
return nMeasures < 9 ? 2 : 1;
},
min: 1,
uses: 'dimensions'
},
measures: {
max: 8,
max: function (nDims) {
return nDims < 2 ? 9 : 8;
},
min: 1,
uses: 'measures'
}
Expand Down

0 comments on commit 02bba4a

Please sign in to comment.