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

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.

Helper III
Helper III

Optimizing the code

Dear Experts,
Below code is taking more time,Could you please let me know any optimization technics on below code.

IF (
ISBLANK ( [_productivity] ) || ISBLANK ( [ProductivityGoalVal] ),
IF ( VALUE ( [_productivity] ) >= VALUE ( [ProductivityGoalVal] ), "No", "Yes" )

Thanks & Regards,
Community Support
Community Support

Hi @basirve 

Have you solved this question with basirve's help? If you have solved the question, you can accept the answer helpful as the solution or share you method and accept it as solution, thanks for your contribution to improve Power BI.

If you need more help, please let me know.


Best Regards,

Community Support Team _Tang

If this post helps, please consider Accept it as the solution to help the other members find it more quickly.

Community Champion
Community Champion

Hi @basirve ,


Before optimize it, I would suggest just have a look into these measure_productivity and ProductivityGoalVal  but still you can try below code:-

    TRUE (),
    OR ( [_productivity], [ProductivityGoalVal] ), BLANK (),
    [_productivity] >= [ProductivityGoalVal], "NO",




Best Regards,

If this post helps, please consider accepting it as the solution to help the other members find it more quickly.
Appreciate your Kudos!!
Connect on Linkedin

Helpful resources

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.