Forum Discussion
brownrobm
8 years agoFrequent Visitor
Filter by aggregate value, and then summarize by a different column
I am attepting to create a measure that will identify people who have claims > $50k and then group those claims by another dimension. Claims Member Type Amount 1 A 25000 1 ...
- Anonymous8 years ago
HI brownrobm,
You can try to use below formula to create new table with specific summary conditions:
Summary Table = VAR list = CALCULATETABLE ( VALUES ( 'Member'[ID] ), FILTER ( ALL ( 'Member' ), [Amount] > 50000 ) ) RETURN SUMMARIZE ( FILTER ( T1, [Member] IN list ), [Type], "Desc", LOOKUPVALUE ( T2[Description], T2[Type], [Type] ), "Amount", SUM ( T1[Amount] ), "Person", COUNTROWS ( VALUES ( T1[Member] ) ) )Regards,
Xiaoxin Sheng
Anonymous
8 years agoNot applicable
HI brownrobm,
You can try to use below formula to create new table with specific summary conditions:
Summary Table =
VAR list =
CALCULATETABLE (
VALUES ( 'Member'[ID] ),
FILTER ( ALL ( 'Member' ), [Amount] > 50000 )
)
RETURN
SUMMARIZE (
FILTER ( T1, [Member] IN list ),
[Type],
"Desc", LOOKUPVALUE ( T2[Description], T2[Type], [Type] ),
"Amount", SUM ( T1[Amount] ),
"Person", COUNTROWS ( VALUES ( T1[Member] ) )
)
Regards,
Xiaoxin Sheng