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

Next up in the FabCon + SQLCon recap series: The roadmap for Microsoft SQL and Maximizing Developer experiences in Fabric. All sessions are available on-demand after the live show. Register now

Reply
AllanBerces
Post Prodigy
Post Prodigy

IF morethan %100

Hi good day, can anyone help me on my measure. What i required is if the result is morethan 1 on my %completed then equal to 1 else %completed

 

%Completed_ =
    ([measure01]/[measure02])
3 ACCEPTED SOLUTIONS
Irwan
Super User
Super User

hello @AllanBerces 

 

you can use if statement.

here is an example. Divide21 is measure2 divided by measured1 which is over than 1.

Irwan_0-1773364632679.png

add if statement to define value over 1 then you can get divide21 becomes 1.

Irwan_1-1773364699819.png

 

Hope this will help.

Thank you.

View solution in original post

SamInogic
Solution Sage
Solution Sage

Hi,

 

As per our  understanding, you’re attempted the calculating the percentage is greater than 1 (100%), it should return 1, otherwise it should return the actual %Completed value.

You can update your measure like this:

%Completed_ =
MIN(
    DIVIDE([measure01], [measure02]),
    1
)

Explanation:

  • DIVIDE([measure01], [measure02]) safely performs the calculation and avoids division-by-zero errors.
  • MIN(value, 1) ensures the result never exceeds 1 (100%).
  • If the calculated percentage is greater than 1, the measure returns 1; otherwise, it returns the actual percentage.

This will cap your completion percentage at 100%, which is commonly used in progress or completion metrics.

 

Hope this helps

Thanks!

Inogic Professional Services: Power Platform/Dynamics 365 CRM
An expert technical extension for your techno-functional business needs
Service: https://www.inogic.com/services/
Tips and Tricks: https://www.inogic.com/blog/

View solution in original post

Kedar_Pande
Super User
Super User

@AllanBerces 

 

%Completed_ = 
IF([measure01]/[measure02] > 1, 1, [measure01]/[measure02])

 

If this answer helped, please click 👍 or Accept as Solution.
-Kedar
LinkedIn: https://www.linkedin.com/in/kedar-pande

View solution in original post

4 REPLIES 4
Kedar_Pande
Super User
Super User

@AllanBerces 

 

%Completed_ = 
IF([measure01]/[measure02] > 1, 1, [measure01]/[measure02])

 

If this answer helped, please click 👍 or Accept as Solution.
-Kedar
LinkedIn: https://www.linkedin.com/in/kedar-pande

SamInogic
Solution Sage
Solution Sage

Hi,

 

As per our  understanding, you’re attempted the calculating the percentage is greater than 1 (100%), it should return 1, otherwise it should return the actual %Completed value.

You can update your measure like this:

%Completed_ =
MIN(
    DIVIDE([measure01], [measure02]),
    1
)

Explanation:

  • DIVIDE([measure01], [measure02]) safely performs the calculation and avoids division-by-zero errors.
  • MIN(value, 1) ensures the result never exceeds 1 (100%).
  • If the calculated percentage is greater than 1, the measure returns 1; otherwise, it returns the actual percentage.

This will cap your completion percentage at 100%, which is commonly used in progress or completion metrics.

 

Hope this helps

Thanks!

Inogic Professional Services: Power Platform/Dynamics 365 CRM
An expert technical extension for your techno-functional business needs
Service: https://www.inogic.com/services/
Tips and Tricks: https://www.inogic.com/blog/
Irwan
Super User
Super User

hello @AllanBerces 

 

you can use if statement.

here is an example. Divide21 is measure2 divided by measured1 which is over than 1.

Irwan_0-1773364632679.png

add if statement to define value over 1 then you can get divide21 becomes 1.

Irwan_1-1773364699819.png

 

Hope this will help.

Thank you.

Hi @Kedar_Pande @SamInogic @Irwan thank you very much work as i need

Helpful resources

Announcements
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

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.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

Check out the March 2026 Power BI update to learn about new features.