Multiplying Data in a repeater triggered by user input or drop down

I have a repeater that displays data (cost) after users use drop downs to search/filter through my data set. Is it possible to have another drop down that would act as a multiplier to that cost shown in the repeater. If so what do I need to add to this code below.

Current Code that searches/filters.

import wixData from ‘wix-data’ ;

$w.onReady( function () {
});

export async function button1_click(event, $w) {
$w( ‘#dataset1’ ).setFilter(wixData.filter()
.eq( “sex” , $w( ‘#dropdown1’ ).value)
.contains( “age” , $w( ‘#dropdown2’ ).value)
.contains( “ethnicity” , $w( ‘#dropdown3’ ).value)
.contains( “service” , $w( ‘#dropdown4’ ).value)
)
.then(() => {
console.log( “Dataset is now filtered” );
}) . catch ((err) => {
console.log(err);
});
$w( ‘#table2’ ).expand();
}

Hi Ben,

Could you expand on what you’re wanting to do, perhaps with a screen shot? The answer is “yes” to the question that another dropdown could dynamically be populated based on cost or some data shown in the repeater.

Hey Anthony I figured it out. Thank you for reaching out though!