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

July 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! Learn more

Reply
AllanBerces
Post Prodigy
Post Prodigy

IF with Calculation

Hi good day, can someone help me on my PQ, I have a table and i need some calculation 

- IF the progress value is greater than Estimated, then calculate the actual Progress else Progress

AllanBerces_0-1749627915691.png

RESULT

1.68*94.05/100 = 1.58

AllanBerces_1-1749627967288.png

thank you

 

 

2 ACCEPTED SOLUTIONS
Deku
Super User
Super User

Table.addcolumn( previousStep, "Result", each if [progress] > [estimated] then [estimated] * [% complete] / 100 else [progress])


Did I answer your question?
Please help by clicking the thumbs up button and mark my post as a solution!

View solution in original post

v-hjannapu
Community Support
Community Support

Hi @AllanBerces,

Thank you  for reaching out to the Microsoft fabric community forum.
Thank you @Deku, for reply regarding the issue.

By using this formula you may create custom column:

if [Progress] > [Estimated] then [Estimated] * [PercentComplete] / 100 else [Progress]


Please find the attched Pbix file and screenshot for your reference

vhjannapu_0-1749638604559.png


If your issue is sorted out, don’t forget to Accept it as the solution and give it a Kudos  it helps other members find helpful answers faster.

Best Regards,
Harshitha.
Community Support Team

View solution in original post

3 REPLIES 3
v-hjannapu
Community Support
Community Support

Hi @AllanBerces,

Thank you  for reaching out to the Microsoft fabric community forum.
Thank you @Deku, for reply regarding the issue.

By using this formula you may create custom column:

if [Progress] > [Estimated] then [Estimated] * [PercentComplete] / 100 else [Progress]


Please find the attched Pbix file and screenshot for your reference

vhjannapu_0-1749638604559.png


If your issue is sorted out, don’t forget to Accept it as the solution and give it a Kudos  it helps other members find helpful answers faster.

Best Regards,
Harshitha.
Community Support Team

Hi @Deku @v-hjannapu thank you very much for the reply, work perfectly.

Deku
Super User
Super User

Table.addcolumn( previousStep, "Result", each if [progress] > [estimated] then [estimated] * [% complete] / 100 else [progress])


Did I answer your question?
Please help by clicking the thumbs up button and mark my post as a solution!

Helpful resources

Announcements
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

60 days of Data Days Carousel

Data Days 2026

Join Fabric Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.