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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
Anonymous
Not applicable

total records per condition in matrix

Hello, I have a matrix visual with data from 2 data tables.  It is a list of names (1st table), and how many contact occurences per name (2nd table).  The reason for 2 data sources is that 2nd source is only results, some Names will not have results, and I need to show a comprehensive list of names to show (1st source)

 

I need a summary visual or card showing me how many names have atleast 1 contact occurence and how many names have 0 contact occurences.  Any help would be much appreciated, and thanks in advance!!

 

NamePhoneEmailMailTotal
Dan   0
Jim11 2
Jeff3 14
Tim   0
Jack1 12
Shawn   0
Total5128
2 REPLIES 2
amitchandak
Super User
Super User

@Anonymous , first create a measure assuming table1 name is used in visual

 

cnt = Countrows(filter(Table2, Table2[Name] = max(Table1[Name]) ) )

 

Now create a table of using generate series

Seg = generateseries(1,10,1)

 

Then have measure

 

Sumx(Seg, calculate(Sumx(filter(Values(Table1[Name]), [cnt] = Max(Seg[Value]) ) ) ) )

 

 

Refer

 

Dynamic segmentation -Measure to Dimension conversion: https://youtu.be/gzY40NWJpWQ

 

 

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube
Anonymous
Not applicable

Hello, my apologies but am having problems with the solution you proposed.  The situation has changed slightly - I have a matrix listing hundreds of company names, there is one value field with either numbers or no data.  I need a card (or metric to put in the card) that shows me % of companies with atleast 1 in the value field.  The goal is to show the % of companies that have participated, in the following example, the card / metric would show 50%, or 4 of 8.

 

CompanyValue
A 
B1
C3
D 
E6
F 
G 
H2

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

Check out the August 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

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

Top Solution Authors