Forum Discussion

deepakkumar456's avatar
deepakkumar456
Frequent Visitor
1 year ago
Solved

Power BI total Count for grouped value based on filter condition

Hello, I have a table named XYZ and columns A and B as below -  A B Delhi 1 Delhi 2 Delhi 3 Mumbai 1 Jaipur 2 Jaipur 3 Hyderabad 1 Chennai 2 Nagpur 3 Nagp...
  • muhammad_786_1's avatar
    1 year ago

    Hi deepakkumar456 

     

    You can try this DAX to get your result:

    Count_B_Greater_Than_1 = 
    CALCULATE(
        COUNTROWS(
            FILTER(
                SUMMARIZE('Table', 'Table'[A], "Count_B", COUNT('Table'[B])),
                [Count_B] > 1
            )
        )
    )

     

    Best Regards,
    Muhammad Yousaf

     

    If this post helps, then please consider "Accept it as the solution" to help the other members find it more quickly.

     

    LinkedIn