cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
ikarthik
Microsoft
Microsoft

How to put multiple lines of text in one lable in powerapps?

Scenario: 
I have a set of data as below, where i need to showcase the report status in a label as comments:
 

Report1Report2Report3COMPLETENESS STATUSACCURACY STATUSTIMELINESS STATUSAREACurrency
532Not CompletedNoNoUSAUSD
356Not CompletedNoNoUSAUSD
 
So i have used the below function:
"Completness :" & CountRows(Filter(Source,
Currency="USD",AREA="USA",'COMPLETENESS STATUS'="Not Completed")) & " Report(s) not Completed"
& "Accuracy :" & CountRows(Filter(Source,
Currency="USD",AREA="USA",'ACCURACY STATUS'="No")) & " Report(s) Inaccurate"
"Timeliness :" & CountRows(Filter(Source,
Currency="USD",AREA="USA",'TIMELINESS STATUS'="No")) & " Report(s) not Impacted"
 
....and the result was like CaptureR.JPG (Snip attached), but i wanted to show the result as Completeness status (Comments) in 1st line, Accuracy Status (Comments) in 2nd line and Timeliness Status (Comments) in 3rd line like Expected.JPG (Snip Attached). 
I know by giving [Space] and by alternating the label size manually I can get the result as expected, but i wanted to show automatically without disturbing the size of label.
 
Please Help!
 
2 ACCEPTED SOLUTIONS

Accepted Solutions
WarrenBelz
Super User
Super User

Hi @ikarthik ,

Try this

"Completness :" & 
CountRows(
   Filter(
      Source,
      Currency="USD",
      AREA="USA",
      'COMPLETENESS STATUS'="Not Completed"
   )
) & 
" Report(s) not Completed" & Char(10) & 
"Accuracy :" & 
CountRows(
   Filter(
      Source,
      Currency="USD",
      AREA="USA",
      'ACCURACY STATUS'="No"
   )
) & 
" Report(s) Inaccurate" & Char(10) & 
"Timeliness :" & 
CountRows(
   Filter(
      Source,
      Currency="USD",
      AREA="USA",
      'TIMELINESS STATUS'="No"
   )
) & 
" Report(s) not Impacted"

 

Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

View solution in original post

eka24
Super User
Super User

Use Char(10) Example:

"EEEEEEE RRRRRRRRR"&Char(10)&
"PPPPPPPPPPPPPPPPPPPPP NNNNNNNNNNNNNNNNNNN"&
Char(10)&"OOOOOOOOOOOOOOOOO AAAAAAAAAAA"
------------

If you like this post, give a Thumbs up. Where it solved your request, Mark it as a Solution to enable other users find it.

View solution in original post

3 REPLIES 3
WarrenBelz
Super User
Super User

Hi @ikarthik ,

Try this

"Completness :" & 
CountRows(
   Filter(
      Source,
      Currency="USD",
      AREA="USA",
      'COMPLETENESS STATUS'="Not Completed"
   )
) & 
" Report(s) not Completed" & Char(10) & 
"Accuracy :" & 
CountRows(
   Filter(
      Source,
      Currency="USD",
      AREA="USA",
      'ACCURACY STATUS'="No"
   )
) & 
" Report(s) Inaccurate" & Char(10) & 
"Timeliness :" & 
CountRows(
   Filter(
      Source,
      Currency="USD",
      AREA="USA",
      'TIMELINESS STATUS'="No"
   )
) & 
" Report(s) not Impacted"

 

Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

eka24
Super User
Super User

Use Char(10) Example:

"EEEEEEE RRRRRRRRR"&Char(10)&
"PPPPPPPPPPPPPPPPPPPPP NNNNNNNNNNNNNNNNNNN"&
Char(10)&"OOOOOOOOOOOOOOOOO AAAAAAAAAAA"
------------

If you like this post, give a Thumbs up. Where it solved your request, Mark it as a Solution to enable other users find it.

Wow! It's worked. Appreciate for quick response 😀

Helpful resources

Announcements
Microsoft 365 Conference – December 6-8, 2022

Microsoft 365 Conference – December 6-8, 2022

Join us in Las Vegas to experience community, incredible learning opportunities, and connections that will help grow skills, know-how, and more.

Top Solution Authors
Top Kudoed Authors
Users online (1,134)