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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
NG1407
New Member

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
New Member

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
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

April Fabric Community Update

Fabric Community Update - April 2024

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