Forum Discussion

pg9's avatar
pg9
Frequent Visitor
3 years ago
Solved

Counting column values for a matrix visual

Hi All, For a matrix visual, I'm looking to calculate the number of rows for a particular column.   Can someone suggest a dax measure for this please?
  • v-jianboli-msft's avatar
    3 years ago

    Hi pg9 ,

     

    Please try:

    Measure = CALCULATE(COUNT(Sheet1[EmpIID]),FILTER(ALL(Sheet1),[Attribute] in ALLSELECTED('Sheet1 (2)'[Attribute]) &&[Value] in ALLSELECTED('Sheet1 (2)'[Value])))

    Final output:

    Best Regards,

    Jianbo Li

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