vdl-index-filter
Filter an index out of a <vdl-table-column>. Reduces the size of the indices by fixing the value of the specified index set. This is useful for matching up array entities where some have extra indices. Can also be used to pivot the given indices to become columns instead of rows.
Required parent element
Example
<vdl-table>
<vdl-table-column entity="Altitude">
<vdl-index-filter set="Continent" value="=scenario.entities.SelectedContinent.value"></vdl-index-filter>
<vdl-index-filter set="Country" value="=scenario.entities.SelectedCountry.value"></vdl-index-filter>
</vdl-table-column>
<vdl-table-column entity="ShippingCost">
<!--
Given ShippingCost : array (Country, Country) of real
(so using the same index set multiple times), filter the destination country (the second occurrence of Country in the declaration, so use set-position of 1) -->
<vdl-index-filter set="Country" set-position="1" value="=scenario.entities.SelectedCountry.value"></vdl-index-filter> </vdl-table-column>
</vdl-table>
Attributes
set | Name of the set entity to filter out of the indices for the column. | required | |
---|---|---|---|
value | Single value to fix the indices to. | accepts expression | required |
set-position | Index (zero-based) of occurrence of that index set in the index tuple for the array. Defaults to zero. |
© 2001-2020 Fair Isaac Corporation. All rights reserved. This documentation is the property of Fair Isaac Corporation (“FICO”). Receipt or possession of this documentation does not convey rights to disclose, reproduce, make derivative works, use, or allow others to use it except solely for internal evaluation purposes to determine whether to purchase a license to the software described in this documentation, or as otherwise set forth in a written software license agreement between you and FICO (or a FICO affiliate). Use of this documentation and the software described in it must conform strictly to the foregoing permitted uses, and no other use is permitted.