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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
VisualJade
Frequent Visitor

Data Modelling error: Missing rows in matrix

DATA MODEL:
This is what my data model looks like:
Date to date, country to country etc.
All Many (Fact Table) to one, all in single cross-filter direction.

VisualJade_0-1714360465415.png

MATRIX VISUAL
I'm trying to calculate the no of distinct companies for each country and application status. I'm using Application Status and Country from the respective tables, and count distinct no of companies. However, one country is missed out. 

VisualJade_1-1714360645195.png

I've previously tried to use only the fact table for the Application Status and Country, but I get the same results.
If I deselect 'Application Status', I will have both countries and their values. But I also need to create a 'total' column to show the total of each country. This will then affect the cell formating, as I actually don't want the background of Totals to be formatted. 

Any way around this? Thank you !

1 ACCEPTED SOLUTION
VisualJade
Frequent Visitor

LOL I forgot to try this and it worked:

CountofCompanies =DISTINCTCOUNT(Fact Table[Company])+0

 

Bruh.

View solution in original post

2 REPLIES 2
VisualJade
Frequent Visitor

LOL I forgot to try this and it worked:

CountofCompanies =DISTINCTCOUNT(Fact Table[Company])+0

 

Bruh.

vicky_
Super User
Super User

Is the issue just that you want both countries to show? If so, right-click on the Country dimension and select "Show items with no data"

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Kudoed Authors