Forum Discussion
Aggregate in same table
- 8 years ago
Hi DominicBrien,
=> I am working toward building a summarized visualisation that would translate in the context of the provided example to.
Did you mean that you want to create a new calculated table with SUMMARIZED() function based on the original table?
Maybe something like:
Table = SUMMARIZE ( 'TableName', "Between 0 and 10", CALCULATE ( COUNT ( 'TableName'[CustomerID] ), FILTER ( 'TableName', 'TableName'[Value] <= 10 ) ), "Between 10 and 20", CALCULATE ( COUNT ( 'TableName'[CustomerID] ), FILTER ( 'TableName', 'TableName'[Value] > 10 && 'TableName'[Value] <= 20 ) ) )Thanks,
Xi Jin.
Hi DominicBrien,
=> I am working toward building a summarized visualisation that would translate in the context of the provided example to.
Did you mean that you want to create a new calculated table with SUMMARIZED() function based on the original table?
Maybe something like:
Table =
SUMMARIZE (
'TableName',
"Between 0 and 10", CALCULATE (
COUNT ( 'TableName'[CustomerID] ),
FILTER ( 'TableName', 'TableName'[Value] <= 10 )
),
"Between 10 and 20", CALCULATE (
COUNT ( 'TableName'[CustomerID] ),
FILTER ( 'TableName', 'TableName'[Value] > 10 && 'TableName'[Value] <= 20 )
)
)Thanks,
Xi Jin.
Thanks, I changed my model quite a bit and was able to produce the result I wanted. Now I am struggeling with a new issue so It's probably better to start a new thread....