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

July 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! Learn more

Reply
DHB
Helper V
Helper V

DAX count and filter problem

U_DIM_LM_USER

USER_ID

Sum of Practice Quiz Submissions

123

2

456

1

789

1

012

1

 

U_FCT_LM_QUIZ_SUMISSION

USER_ID

QuizType

123

practice_quiz

123

practice_quiz

456

practice_quiz

456

assignment

789

practice_quiz

789

assignment

012

practice_quiz

 

I’m trying to create a column (Sum of Practice Quiz Submission) in a table (U_DIM_LM_USER ) which will look up a common value (USER_ID) in another table (U_FCT_LM_QUIZ_SUMISSION) and return a count of a specific value (practice_quiz) from another column in that table.  The result will lopk like the above.

 

I’ve used this DAX formula, which Power BI doesn’t flag up any errors with, but I don’t get any numbers in my Sum of Practice Quiz Submissions column.

 

Practice Quiz Submissions = CALCULATE(COUNTROWS ( U_FCT_LM_QUIZ_SUBMISSION ), U_FCT_LM_QUIZ_SUBMISSION[QuizType] = " practice_quiz ",FILTER(ALL(U_FCT_LM_QUIZ_SUBMISSION),U_FCT_LM_QUIZ_SUBMISSION[USER_ID]=U_DIM_LM_USER[User_ID]))

 

Can anyone see where I’ve gone wrong? Thanks in advance.

1 ACCEPTED SOLUTION
DHB
Helper V
Helper V

Don't worry, I've fixed it.  Spaces in the search term!!!!!

View solution in original post

1 REPLY 1
DHB
Helper V
Helper V

Don't worry, I've fixed it.  Spaces in the search term!!!!!

Helpful resources

Announcements
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

60 days of Data Days Carousel

Data Days 2026

Join Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Top Solution Authors