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 / 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,748 Super User 2026 Season 1 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

     

     

  • Verified answer
    SebS Profile Picture
    4,748 Super User 2026 Season 1 on at

    @Sophiegong 

     

    Sorry forgot about Your number issue here :

     

    Text(Parent.Default, "0,000" )
  • 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

  • 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

    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

  • SebS Profile Picture
    4,748 Super User 2026 Season 1 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

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!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 509 Most Valuable Professional

#2
Haque Profile Picture

Haque 302

#3
11manish Profile Picture

11manish 265

Last 30 days Overall leaderboard