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
Anonymous
Not applicable

sum of count

ubharal_0-1661265356495.png

the above is a sample data i created, what i need to do is sum of count of 1 in measure 1 column  then divide it by total count of measure 2 

 

3 REPLIES 3
Anonymous
Not applicable

Hi @Anonymous,

Perhaps you can try to use summarize function to create a variable table based on the category fields in the measure formula, then you can use iterator function to aggreate the variable table records.

All the secrets of SUMMARIZE - SQLBI
Regards,

Xiaoxin Sheng

nvprasad
Solution Sage
Solution Sage

Hi,

You can try below Dax

Result = Divide ( SUM(MEASURE1),COUNT(MEASURE2),0)

 

Please note Count funciton only counts wherever there is a number.

Appreciate a Kudos! ‌‌
If this helps and resolves the issue, please mark it as a Solution! ‌‌

Regards,
N V Durga Prasad

 

Did I answer your question? Mark my post as a solution! Appreciate your Kudos.
Follow me on LinkedIn.
Anonymous
Not applicable

using a direct query inside count or sum function can only use column can not use measure 

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

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!

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 Kudoed Authors
Users online (2,128)