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

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

Reply
NG1407
Helper I
Helper I

Matrix not showing data for all rows It is showing data only for those rows that has non zero value

I am creating a report where I am showing total numbers,percentage and average score. But It is showing values only for those questions that has non zero value.

I created below measure to calculate total numbers 

CALCULATE(DISTINCTCOUNT(Table1[QKey],USERRELATIONSHIP(Table2[QID],Table1[QID]))

 

I want to show data as below:

SectionQuestionAnswerTotal Number
Section11.1 Ask questionsyes32
  no0
 1.2 Leverage resourceFull25
  No7
  Partial0

But It is showing like this

SectionQuestionAnswerTotal Number
Section11.1 Ask questionsyes32
    
 1.2 Leverage resourceFull25
  No7
    
3 REPLIES 3
NG1407
Helper I
Helper I

Can anyone help with solution. Or help in below ques

I have 2 tables. And they are having many to many relationship using QQkey. I want to create one conditional column in Tables 1

If Table1.qekey = Table2.qekey then Table1.qformid else 0

miTutorials
Super User
Super User

Right click on the Question field and select 'Show items with no data'

 

miTutorials_0-1702309845600.png

 

If that does not work then use an if statement to return 0.

 

Measure = IF(ISBLANK(CALCULATE(DISTINCTCOUNT(Table1[QKey],USERRELATIONSHIP(Table2[QID],Table1[QID])))),0,1)



Regards

Ismail

Thanks Ismail. But it didn't solve my problem. When I tried this it started showing all the Questions and Anwers available in table. As shown below in question column 1.1 Accept and 1.1 Insert got added and in Answer column these got added 

billing,Neutral,Name,Other 1,Other 2,Payment option

SectionQuestionAnswerTotal Number
Section11.1 Ask questionsyes32
  no0
  Neutral0
  Name0
 1.1 AcceptYes0
  No0
 1.1 InsertYes0
  No0
 1.2 Leverage resourceFull25
  No7
  Partial0
  Other 10
  Other 20
  payment option 0
  billing0

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

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