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
AidanaY
Frequent Visitor

Converting

Hello,

Could you please help with rounding the values :

Conditions:

KPI = 100% should be 100%

KPI >100% should be 100%

KPI Infinity = should be 0% 

My dax: Rounding = IF(if('KPI'[KPI %]>1, 1, 'KPI'[KPI %]), if('KPI'[KPI %]<=1, 'KPI'[KPI %],0))

 

Eventually, KPI >100% should be 100% - not worked:

AidanaY_0-1688038675114.png

 

 

1 ACCEPTED SOLUTION

Hi @AidanaY ,

 

Could you please try below DAX expression as this will check if the KPI value is less than or equal to 0 then it will round it to 0%.

 

Rounding = if('KPI Percentage'[KPI %]<=0,0, if('KPI Percentage'[KPI %]>1, 1,  if('KPI Percentage'[KPI %]<=1, 'KPI Percentage'[KPI %],0)))

 

SamInogic_0-1688118670618.png

 

Thanks!

Inogic Professional Services Division

Power Platform and Microsoft Dynamics 365 CRM Development – All under one roof!

Drop an email at crm@inogic.com

Services:  http://www.inogic.com/services/

Power Platform/Dynamics 365 CRM Tips and Tricks:  http://www.inogic.com/blog/

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

3 REPLIES 3
SamInogic
Super User
Super User

Hi @AidanaY ,

Can you try below DAX for rounding column?

Rounding = if('KPI Percentage'[KPI %]>1, 1,  if('KPI Percentage'[KPI %]<=1, 'KPI Percentage'[KPI %],0))

 

SamInogic_0-1688041357471.png

 

Thanks!

Inogic Professional Services Division

Power Platform and Microsoft Dynamics 365 CRM Development – All under one roof!

Drop an email at crm@inogic.com

Services:  http://www.inogic.com/services/

Power Platform/Dynamics 365 CRM Tips and Tricks:  http://www.inogic.com/blog/

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/

 

Thank you! 

But the condition KPI Infinity = should be 0% did not work. If I don't have data for 2024 (Infinity), then it should show 0. Now it is - 100% Can you help?

AidanaY_0-1688114603317.png

 

Hi @AidanaY ,

 

Could you please try below DAX expression as this will check if the KPI value is less than or equal to 0 then it will round it to 0%.

 

Rounding = if('KPI Percentage'[KPI %]<=0,0, if('KPI Percentage'[KPI %]>1, 1,  if('KPI Percentage'[KPI %]<=1, 'KPI Percentage'[KPI %],0)))

 

SamInogic_0-1688118670618.png

 

Thanks!

Inogic Professional Services Division

Power Platform and Microsoft Dynamics 365 CRM Development – All under one roof!

Drop an email at crm@inogic.com

Services:  http://www.inogic.com/services/

Power Platform/Dynamics 365 CRM Tips and Tricks:  http://www.inogic.com/blog/

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/

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.