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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! 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
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.