Forum Discussion

jabrillo's avatar
jabrillo
Icon for Helper I rankHelper I
3 years ago
Solved

Table Visual not showing any result

I have this dataset:

Group1Group2Group3Type
AA1A11T1
AA1A11T2
AA1A11T3
AA1A11T4
AA1A12T1
AA1A12T2
AA1A12T3
BB1B11T1
BB2B21T1
BB2B21T2
BB2B21T3

 

I summarized the number of types per Group3 items:

Group1Group2Group3Count
AA1A114
AA1A123
BB1B111
BB2B213

 

I created two measures. One is [Type Count] = distinctcount([Type]). The other is [Group3 Count] = calculate(distinctcount([Group3]), [Type Count] >= 3).

 

If I create a matrix visual (with filter [Item Count] is greater or equal to 3), the result looks like this:

Group1/Group2Item Count
- A7
   - A17
       A114
       A123
- B3
  - B23
       B213

 

This is correct.

 

I need to create table visuals to show [Group3 Count].

If I create a table visual for Group1, the result should look like this:

Group1Group3 Count
A2
B1

 

If I create a table visual for Group2 with a slicer for Group1, it should look like this:

Group1 slicer = A

Group2Group3 Count
A12
B21

 

But for both tables, I'm getting no results. I need some advice on how to accomplish this. Thank you.

 

 

  • jabrillo ,

     

    Create a measure

    [Type Count] = Count(Table [Type])

     

    Then create a measure

     

    calculate(Countx(filter( Values(Table[Group3]), [Type Count] >= 3) , [Group 3]) )

     

    This should work with first tables group 1, 2 etc

3 Replies

  • jabrillo ,

     

    Create a measure

    [Type Count] = Count(Table [Type])

     

    Then create a measure

     

    calculate(Countx(filter( Values(Table[Group3]), [Type Count] >= 3) , [Group 3]) )

     

    This should work with first tables group 1, 2 etc

  • Hi jabrillo ,

     

    Please try:

    Measure = 
    var _a = SUMMARIZE('Table','Table'[Group1],'Table'[Group2],'Table'[Group3],"Count",COUNT('Table'[Type]))
    return COUNTX(FILTER(_a,[Count]>=3),[Count])

    Output:

    You mentioned that the second visual uses a slicer with Group1=A. If so, B2 does not appear in the visual, do I misunderstand?

     

    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.