Menu
Download Free Trial
Table of contents

setBottomX

setBottomX(hierarchyName:String, num:Number, measureName:String)

[starting from version: 1.4]

Sets the Bottom X filter for the specified hierarchy and measure.

Parameters

  • hierarchyName – the name of the hierarchy.
  • num – number of elements to choose.
  • measureName – the name of the measure on which Bottom X filter will be applied.

Example

flexmonster.setBottomX("Category", 3, "Price");

flexmonster.getFilterProperties("Category");

/*
method getFilterProperties() returns the following object:
{
  type: "bottom",
  members: [],
  measure: "Price",
  quantity: 3
}
*/

flexmonster.getFilter("Category");

/*
method getFilter() returns the following Array:
[
  {caption: "Clothing", hierarchyName: "Category", uniqueName: "category.[clothing]"},
  {caption: "Accessories", hierarchyName: "Category", uniqueName: "category.[accessories]"},
  {caption: "Components", hierarchyName: "Category", uniqueName: "category.[components]"}
]
*/

Check out on JSFiddle.

See also

setTopX
clearFilter
getFilter
getFilterProperties
setFilter