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

Score big with last-minute savings on the final tickets to FabCon Vienna. Secure your discount

Reply
DMB90
Helper I
Helper I

Help with Division Formula with Word Conditions

Hello, I want to create a formula to do the following and essentially give me a percentage.

 

If 0.WTComplete/Incomplete equals Complete, then count the number of complete (11), and divide that number of complete by the count of 1.WTApplicable that equals Applicable (62).

1 ACCEPTED SOLUTION
kpost
Super User
Super User

I'll do my best with the limited information provided.  I don't know what your table is called, and I assumed it's all in one table, and that table is called 'Table'.  You'll need to modify this measure to fit your needs.

 

division_formula = 
var numerator = CALCULATE(COUNTROWS('Table'), 'Table'[0.WTComplete/Incomplete] = "Complete")
var denominator = CALCULATE(COUNTROWS('Table'), 'Table'[1.WTApplicable] = "Applicable")

Return
DIVIDE(numerator, denominator, 0)

 

///Mediocre Power BI Advice, but it's free///

View solution in original post

2 REPLIES 2
Ashish_Mathur
Super User
Super User

Hi,

Share some data to work with and show the expected result.  Share data in a format that can be pasted in an MS Excel file.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/
kpost
Super User
Super User

I'll do my best with the limited information provided.  I don't know what your table is called, and I assumed it's all in one table, and that table is called 'Table'.  You'll need to modify this measure to fit your needs.

 

division_formula = 
var numerator = CALCULATE(COUNTROWS('Table'), 'Table'[0.WTComplete/Incomplete] = "Complete")
var denominator = CALCULATE(COUNTROWS('Table'), 'Table'[1.WTApplicable] = "Applicable")

Return
DIVIDE(numerator, denominator, 0)

 

///Mediocre Power BI Advice, but it's free///

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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