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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
Anonymous
Not applicable

Excel Formula into DAX Formula

Hi All, 

 

I am trying to set up a formula in DAX but not sure where to start. I have this on excel but need to translate this to DAX format for powerbi.

 

So a bit of background. I am trying to understand the percentage completion for a current project. For example the team have to go from 6000 (baeline) to 1150 (Target) for them to completed the acitvity. Therefore when the team hit 1150 they wouldve completed 100%. So i did an interpolation formula on excel as i wasnt sure how to do this on DAX. 

 

The formula is (-100(Current No - Target No)/(Baseline-Target No))+100. 

 

Can someone help me.

 

RU

3 REPLIES 3
Anonymous
Not applicable

Hi @Anonymous ,
you can make a new measure with the following DAX

Completion % = -100 * DIVIDE(Current No - Target No,Baseline-Target No,0) + 100

 

Regards,

Aditya

Anonymous
Not applicable

A better way to write the formula would be 

Completion % = 100(1- DIVIDE(Current No - Target No,Baseline-Target No,0))
amitchandak
Super User
Super User

@Anonymous ,Can you share sample data and sample output in table format? Or a sample pbix after removing sensitive data.

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

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

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

Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.