Forum Discussion

zelda88's avatar
zelda88
Regular Visitor
8 years ago
Solved

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.      ...
  • Zubair_Muhammad's avatar
    Zubair_Muhammad
    8 years ago

    zelda88

     

    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] ) )