Table data filter and thousand separator

I want to show thousand separated amount in TABLE. I found code but unable to do it on table where data is filtered on logged in user. It shows all the rows in table (Filter does not work). Pls help

@tiffaney-valenzuela

currentUser.getEmail()
.then( (email) => {
userEmail = email;
console.log(userEmail);
$w( “#dataset1” ).onReady(() => {

    $w( "#dataset1" ).setFilter(wixData.filter() 
    .eq( "email" , userEmail) 

    ). **catch** ((err) => { 
    console.log( 'in error'  + err); 

})   
amtformat() 

})

export function amtformat(){
let rows = $w( “#table1” ).rows;
let cnt = $w( “#table1” ).rows.length;

    console.log(cnt) 

for ( let i = 0 ; i < cnt; i++) {