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
Queen_Geek
Helper I
Helper I

excel to DAX formula

My data is all in columns on the same table-no relationships needed.  I need to find the % of projects that have lessons.  The screenshot is the excel version of the data output.  The excel formula is

=SUBTOTAL(9,Table1[Column1])/SUBTOTAL(3,Table1[Project])

 

How can I translate this into DAX? 

 

I tried this, but the % isn't correct (comes up 4.8%). 

Count of # Lessons divided by Count of Project =
DIVIDE(SUM('Table1'[# Lessons]), COUNTA('Table1'[Project]))
 

exec summary for power bi help.jpg

 
 
 
1 ACCEPTED SOLUTION

I figured it out on my own.  The answer was simply  

 
=

DIVIDE(Counta('Table1'[Startup]), COUNTA('Table1'[Project]))
 
.

View solution in original post

4 REPLIES 4
v-eachen-msft
Community Support
Community Support

Hi @Queen_Geek ,

 

After my tests, i got the same result with these formula. Maybe it is caused by your filter or slicer. You could add ALL() filter in your measure.

 

 

 

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

I figured it out on my own.  The answer was simply  

 
=

DIVIDE(Counta('Table1'[Startup]), COUNTA('Table1'[Project]))
 
.
amitchandak
Super User
Super User

@Queen_Geek , Not very clear.

Refer if this can help

https://community.powerbi.com/t5/Desktop/Percentage-of-subtotal/td-p/95390

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

That doesn't help.  There are no subtotals in my data, it's in columns, like the screenshot shows.  What isn't clear?  Here is a screenshot of the data (partial) if that helps?

Executive Summary screenshot 2.jpg

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.