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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
tcouey
Frequent Visitor

Help with Divide Function with Countx and Filter

Hi, and thanks for any help. Over the last couple months I've had the opportunity to start editing dashboards at work and am really enjoying it and want to keep pursuing the skill.

 

I'm trying to create a new measure, that looks at two separate columns, in separate tables. 

 

This is what I have so far and am getting the "too few arguments passed to the divide function error" 

 

"MRC Controls as % of Total Issues = DIVIDE(Countx(Filter(Controls,controls[mrc_control] = "Y"),controls[id])) / count(test_issues[id])"
 
For context, I need to look at the mrc_control column in the controls table, and count every control ID that has an MRC value of "Y." I then need to divide that number, by the total count of all the IDs in the test_issues table. 
1 ACCEPTED SOLUTION
Shishir22
Solution Sage
Solution Sage

Hello @tcouey ,

 

Please use below measure to fix your error-

 

MRC Controls as % of Total Issues = DIVIDE(Countx(Filter(Controls,controls[mrc_control] = "Y"),controls[id]), count(test_issues[id]),BLANK())

 

If that dont gives you expected results please share sample data and expected output in tabular format.

 

Cheers,
Shishir

View solution in original post

1 REPLY 1
Shishir22
Solution Sage
Solution Sage

Hello @tcouey ,

 

Please use below measure to fix your error-

 

MRC Controls as % of Total Issues = DIVIDE(Countx(Filter(Controls,controls[mrc_control] = "Y"),controls[id]), count(test_issues[id]),BLANK())

 

If that dont gives you expected results please share sample data and expected output in tabular format.

 

Cheers,
Shishir

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

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.