• my desire out put will be

    Member primarycondition primaryintensity secondarycondition secondaryIntensity

    M2345 hf 1

    M2345 COPD 1

    M2345 CAD 1

    M2345 dia 1

    M2345 Ast 1

    M2345 hf 2

    M2345 COPD 2

    M2345 CAD 2

    M2345 dia 2

    M2345 Ast 2

    it not taking spaces

    but hf and associated primaryintensity will be under primary condition and primaryintensity

    other will goes under secondarycondition and secondary intensity