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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / how to change data typ...
Power Apps
Answered

how to change data type under formviewer

(0) ShareShare
ReportReport
Posted on by 62

Dear All,

I am fresh people for Power apps.

Data source is onedrive excle,import to formviewer in power apps as below. But how to convert the data type?

1.End of work Day change to short date MM/dd/yyyy

2.How to add thousands separator for Number 

3.How to change 0.07 to 7%

 

33333.png

Categories:
I have the same question (0)
  • SebS Profile Picture
    4,686 Moderator on at
    If(IsBlank(ThisItem.'Posting Date') || IsEmpty(ThisItem.'Posting Date'),IsBlank(),Text((ThisItem.'Posting Date'),ShortDate))

     

    But You need to handle this on input if the error exist in the row isBlank() will not help

  • Sophiegong Profile Picture
    62 on at

    Dear,I got another error for date format in datatable, when the Datasource is blank,there will be error display in datatable.Do you have any idea for that?

     

    If(IsBlank(ThisItem.'Posting Date'),"",Text((ThisItem.'Posting Date'),ShortDate))

     

    屏幕截图 2022-12-08 165252.jpg

  • Sophiegong Profile Picture
    62 on at
    Text(DateTimeValue(Parent.Default),DateTimeFormat.ShortDate)

    Finally I use this expression to get correct date format.

     

  • Sophiegong Profile Picture
    62 on at

    It is really strange that the percentage is works, but date and number are not.

     

    111111.png22222.png3333.png

  • Verified answer
    SebS Profile Picture
    4,686 Moderator on at

    @Sophiegong 

     

    Sorry forgot about Your number issue here :

     

    Text(Parent.Default, "0,000" )
  • SebS Profile Picture
    4,686 Moderator on at

    Hi @Sophiegong 

     

    Unlock Your DataCard and click the text box with the value. You looking to Format this control. There should be Default Property and inside expression Parent.Default.

     

    You need to wrap it in Text() Function now for date:

     

     

    Text(Parent.Default,"dd-mm-yyyy")

     

     

    I hope You mean 0.07 should be 0.07% but if You need to show 7% You need to multiple it by 100 and format it to % as below but if it should be 0.07% remove the 100 multiplayer and additional brackets

     

     

    Text((Parent.Default)*100,"0%")

     

     

     

    Hope this helps

     

     

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
Kalathiya Profile Picture

Kalathiya 400

#2
WarrenBelz Profile Picture

WarrenBelz 348 Most Valuable Professional

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 315 Super User 2025 Season 2

Last 30 days Overall leaderboard