Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
jabrillo
Helper I
Helper I

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.

 

 

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@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

View solution in original post

3 REPLIES 3
v-jianboli-msft
Community Support
Community Support

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:

vjianbolimsft_0-1673401490418.png

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.

amitchandak
Super User
Super User

@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

Thank you @amitchandak. This works.

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.