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
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
Power BI DataViz World Championships

Power BI Dataviz World Championships

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

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.