Forum Discussion
zelda88
8 years agoRegular Visitor
Help?
I have provided an example of what I'm hoping to do. Please do not hesitate to ask for clarification if the example is not clear. Name Dependent Form No. Paid Emil R. ...
- 8 years ago
This DAX calculated table might work as well
Sample file attached as well
From the Modelling tab>>New Table
New Table = VAR Filter_Dependents = CALCULATETABLE ( Grouped, FILTER ( SUMMARIZE ( Grouped, Grouped[Name], [Dependent], "Count", DISTINCTCOUNT ( Grouped[Form No.] ) ), [Count] > 1 ) ) VAR RANK_Forms = FILTER ( ADDCOLUMNS ( Filter_Dependents, "RANK", RANKX ( FILTER ( Filter_Dependents, [Name] = EARLIER ( [Name] ) ), [Form No.], , ASC, DENSE ) ), [RANK] > 1 ) RETURN SUMMARIZE ( RANK_Forms, [Name], [Dependent], "Paid", SUM ( Grouped[Paid] ) )
Zubair_Muhammad
8 years agoCommunity Champion
This DAX calculated table might work as well
Sample file attached as well
From the Modelling tab>>New Table
New Table =
VAR Filter_Dependents =
CALCULATETABLE (
Grouped,
FILTER (
SUMMARIZE (
Grouped,
Grouped[Name],
[Dependent],
"Count", DISTINCTCOUNT ( Grouped[Form No.] )
),
[Count] > 1
)
)
VAR RANK_Forms =
FILTER (
ADDCOLUMNS (
Filter_Dependents,
"RANK", RANKX (
FILTER ( Filter_Dependents, [Name] = EARLIER ( [Name] ) ),
[Form No.],
,
ASC,
DENSE
)
),
[RANK] > 1
)
RETURN
SUMMARIZE ( RANK_Forms, [Name], [Dependent], "Paid", SUM ( Grouped[Paid] ) )BKirsch12
8 years agoResolver II
I tried this and got the same results. Nice Solution.