web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Remove decimals from A...
Power Apps
Answered

Remove decimals from Artikel #

(0) ShareShare
ReportReport
Posted on by 162

Hello all,

 

I'm a new Power Apps user and I'm trying to build an app. 

 

I have a list 'A' which pulls the 'Artikel #' from list 'B' by using the lookup function. In list 'B' the format of the 'Artikel #' column is value with no decimals and the number is shown as 3014470.

 

When I want to display the 'Artikel #' on the detail screen, the value shows with 7 zeros after a period (3014470.0000000). I tried to figure it out for a long time, but no success. 

 

Who can help me with this issue?

 

Thank you in advance for you kind cooperation.

 

Kind regards,

 

Hans

 

issue.png

Categories:
I have the same question (0)
  • iAm_ManCat Profile Picture
    18,256 Most Valuable Professional on at

    You could use either:

     

     

    Round(ThisItem.'Artikel #',0)

     

    or

     

    Text(ThisItem.'Artikel #', "#")

     

  • lucarios1705 Profile Picture
    16 on at

    for me was working the function: Round(Substitute(Gallery1.Selected.xxxx;".";",");0)

  • Rapaille Profile Picture
    162 on at

    Thank you both for your help. I tried all three options, but still same issue.

     

    Rapaille_1-1656483571683.png

     

  • iAm_ManCat Profile Picture
    18,256 Most Valuable Professional on at

    Ah ok, inside a datacard like that probably going to be able to use parent.default:

     

    Round(Parent.Default,0)

     

    or

     

    Text(Parent.Default, "#")
  • Rapaille Profile Picture
    162 on at

    Unfortunately still same issue.

     

    Rapaille_0-1656500925351.png

     

  • iAm_ManCat Profile Picture
    18,256 Most Valuable Professional on at

    Hi, you've put that in the displaymode property (which should be its original value of DisplayMode.View), the formula needs to go into the Text property to replace the Text its currently showing

  • Rapaille Profile Picture
    162 on at

    For this field text is not present in the dropdown. Could you please help me with the correct option?

     

    Thank you in advance.

  • iAm_ManCat Profile Picture
    18,256 Most Valuable Professional on at

    What type of control is it? Could you please post a screenshot of the tree view on the left with that control selected?

  • Rapaille Profile Picture
    162 on at

    Rapaille_0-1656510794668.png

     

  • iAm_ManCat Profile Picture
    18,256 Most Valuable Professional on at

    hmmm,

     

    We could do something like this for your items property, but you will need to replace my column names and datasource names with your own:

     

    ForAll(Choices([@YOURDATASOURCE].YOURCOLUMNNAME), First(Split(Value, ".")).Result)

     

     

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 534

#2
WarrenBelz Profile Picture

WarrenBelz 416 Most Valuable Professional

#3
Valantis Profile Picture

Valantis 306

Last 30 days Overall leaderboard