Community Tip - Did you get called away in the middle of writing a post? Don't worry you can find your unfinished post later in the Drafts section of your profile page. X
In my situation, I can do aggregate function and data filter function in different services. but now I want to combine these two in one service. how to do that? Could someone show me an example.
here is my code in service:
var result = Resources["InfoTableFunctions"].RenameField({
t: Resources["InfoTableFunctions"].Aggregate({
t: me.QueryDataTableEntries({ maxItems: 1000000 }),
columns: 'value',
aggregates: 'SUM',
query: query,
groupByColumns: 'month'
}),
from: "SUM_value",
to: "value"
});
var query =
{
"filters": {
"type": "EQ",
"fieldName": "KPI_Details",
"value": "Volume1"
}
};
and result only show each month number and value