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

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

Reply
Anonymous
Not applicable

Help writing an expression

Hi all,

I'm trying to write an expression for a vacancy no response rate.

Basically, I have a column with 75 unique vacancy reference numbers, and a column saying how many CV's were sent to each.

I want to make a measure which calculates the percentage figure of 0 Cvs sent over total rows.

Would look something like = count Number of Cvs sent=0 / count rows

1 ACCEPTED SOLUTION

Hi @Anonymous ,

 

Try this measure.

 

Did not respond =

Var a = CALCULATE(DISTINCTCOUNT('Table'[Ref No]),ALL('Table'))
var b = CALCULATE(COUNT('Table'[CV's Sent]),KEEPFILTERS('Table'[CV's Sent] = 0))
var c = COUNTROWS(FILTER('Table','Table'[CV's Sent] = 0))

RETURN
DIVIDE(c,a)
 
 
Regards,
Harsh Nathani

Did I answer your question? Mark my post as a solution! Appreciate with a Kudos!! (Click the Thumbs Up Button)

View solution in original post

3 REPLIES 3
harshnathani
Community Champion
Community Champion

Hi @Anonymous ,

 

 

Try 

 

CV Sent% =

var b = CALCULATE(SUM('Table'[CV's Sent]),ALL('Table'))
RETURN
DIVIDE(MAX('Table'[CV's Sent]),b)
 
 
1.jpg
 

Regards,
Harsh Nathani

Did I answer your question? Mark my post as a solution! Appreciate with a Kudos!! (Click the Thumbs Up Button)

Anonymous
Not applicable

Hi @harshnathani I appreciate the response, however I think I might not have explained myself clearly enough.

I just want a % of vacancies we didn't respond to.

e.g. in your table the final value would be 25%.

Hi @Anonymous ,

 

Try this measure.

 

Did not respond =

Var a = CALCULATE(DISTINCTCOUNT('Table'[Ref No]),ALL('Table'))
var b = CALCULATE(COUNT('Table'[CV's Sent]),KEEPFILTERS('Table'[CV's Sent] = 0))
var c = COUNTROWS(FILTER('Table','Table'[CV's Sent] = 0))

RETURN
DIVIDE(c,a)
 
 
Regards,
Harsh Nathani

Did I answer your question? Mark my post as a solution! Appreciate with a Kudos!! (Click the Thumbs Up Button)

Helpful resources

Announcements
Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

Power BI Carousel June 2024

Power BI Monthly Update - June 2024

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

RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.