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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

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
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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