我正在研究Fifa 19 Kaggle数据集。我想创建一个量表,将一个球员的总体统计数据与其所效力的俱乐部的总体平均水平(目标值)进行比较。
我试图创建一个计算列:
Club Overall = calculate(Average(data[Overall]); data[Club]= "FC Barcelona")
我希望它成为选定球员所在的俱乐部,而不是“巴塞罗那足球俱乐部”。
答案 0 :(得分:1)
此措施应通过过滤所有球员,但将俱乐部过滤器保留在适当的位置来完成您想要的操作:
import { NgModule } from '@angular/core';
import { Routes, RouterModule } from '@angular/router';
import { FeedComponent } from './feed.component';
const routes: Routes = [
{ path: '', pathMatch: 'full', component: FeedComponent },
{ path: 'shoes', pathMatch: 'full', component: FeedComponent },
{ path: 'coats', pathMatch: 'full', component: FeedComponent },
{ path: 'shirts', pathMatch: 'full', component: FeedComponent },
{ path: 'pants', pathMatch: 'full', component: FeedComponent },
{ path: 'item/:id', component: FeedComponent },
];
@NgModule({
imports: [RouterModule.forChild(routes)],
exports: [RouterModule]
})
export class FeedRoutingModule { }
有关工作示例,请参见https://pwrbi.com/2019/05/stack-overflow-56128872/