cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Krazyesko
Frequent Visitor

Hi, i dont know where to put the decimal comma for reducing for my app

Hi friend of the microsoft community

 

quick question - i want to reduce the number after the virgule.

 

CountRows(Filter(Gallery4.AllItems;Title6.Text="MTL Building A";Subtitle4.Text=Text(Today())))/95*100&Text("%")

 

Krazyesko_0-1612283538317.png

 

see picture there like 10 number after comma.

 

thanks 

 

 

 

1 ACCEPTED SOLUTION

Accepted Solutions
ganeshsanap
Super User
Super User

@Krazyesko 

You can use either RoundRoundDown, or RoundUp function as per your requirements.

 

For Example:

 

Round(CountRows(Filter(Gallery4.AllItems; Title6.Text = "MTL Building A"; Subtitle4.Text = Text(Today()))) / 95 * 100; 3) & Text("%")

 

This will round the number to show 3 digits to the right of the decimal point. 

 

Microsoft documentationRound, RoundDown, and RoundUp functions in Power Apps 


Please click Accept as solution if my answer helped you to solve your issue. This will help others to find the correct solution easily. If the answer was useful in other ways, please consider giving it ‌‌👍

 

View solution in original post

2 REPLIES 2
Drrickryp
Super User II
Super User II

Hi @Krazyesko 

You would wrap 

Round(CountRows(
           Filter(
                   Gallery4.AllItems;Title6.Text="MTL Building A"; Subtitle4.Text = Text(
                                                                                         Today()
                                                                                     )
           )
          )/95*100, 2
) & Text("%")

 

The Round, RoundDown, and RoundUp functions round a number to the specified number of decimal places:

  • Round rounds up if the next digit is a 5 or higher. Otherwise, this function rounds down.

RoundNumberDecimalPlaces )
RoundDownNumberDecimalPlaces )
RoundUpNumberDecimalPlaces )

  • RoundDown always rounds down to the previous lower number.
  • RoundUp always rounds up to the next higher number.
ganeshsanap
Super User
Super User

@Krazyesko 

You can use either RoundRoundDown, or RoundUp function as per your requirements.

 

For Example:

 

Round(CountRows(Filter(Gallery4.AllItems; Title6.Text = "MTL Building A"; Subtitle4.Text = Text(Today()))) / 95 * 100; 3) & Text("%")

 

This will round the number to show 3 digits to the right of the decimal point. 

 

Microsoft documentationRound, RoundDown, and RoundUp functions in Power Apps 


Please click Accept as solution if my answer helped you to solve your issue. This will help others to find the correct solution easily. If the answer was useful in other ways, please consider giving it ‌‌👍

 

View solution in original post

Helpful resources

Announcements
PA_User Group Leader_768x460.jpg

Manage your user group events

Check out the News & Announcements to learn more.

Power Query PA Forum 768x460.png

Check it out!

Did you know that you can visit the Power Query Forum in Power BI and now Power Apps

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

R2 (Green) 768 x 460px.png

Microsoft Dynamics 365 & Power Platform User Professionals

DynamicsCon is a FREE, 4 half-day virtual learning experience for 11,000+ Microsoft Business Application users and professionals.

Users online (1,640)