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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Learn more

Reply
bdaumPZN
Frequent Visitor

Dax help - count rows that meet a condition

I have two tables (plus a dates table)

  • Company table – a reference table that has a list of all companies and related information about that company
  • Task table – a fact table that has activities that companies have completed. You can think of this as a transaction table.

The company table has fields for location (one is state, the other metro area).  What I need to do is the following:

 

Find the percentage of companies in a given metro area that have completed at least one task.  I'm trying to do this by counting the rows (companies) that meet the condition of completing a minimum of one task and then dividing by the total number of companies in the metro area.  My code is below and i have include a screen shot of some of the matrix that outline what I'm trying to achieve.  Let me know if you need more information.

 

dax code.pngtable view.png

 

1 ACCEPTED SOLUTION
v-lili6-msft
Community Support
Community Support

hi, @bdaumPZN 

I think if you could keep a few more decimal places for this measure.

For example:

4.JPG5.JPG

If not your case, please share a simple sample pbix file for us have a test.

Do mask sensitive data before uploading

 

Best Regards,

Lin

 

Community Support Team _ Lin
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

1 REPLY 1
v-lili6-msft
Community Support
Community Support

hi, @bdaumPZN 

I think if you could keep a few more decimal places for this measure.

For example:

4.JPG5.JPG

If not your case, please share a simple sample pbix file for us have a test.

Do mask sensitive data before uploading

 

Best Regards,

Lin

 

Community Support Team _ Lin
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

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.

Top Solution Authors