cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
dianhudayahr
Helper I
Helper I

Replace Blank Value Field to Other Character

Hello All,

Im going to made an inspection layout for making a Report.
So, I have sharePoint list name "Inspection product" with a blank value as below. 

dianhudayahr_0-1608286684099.png

 

to display a value for report, i use function lookup in my label inside property text, as below:

 

LookUp('Inpeksi Produk',QrcodeID = TextInputMS_Qrcode.Text).Hrb

 


Lets check from report.

dianhudayahr_1-1608286956010.png

value blank, and looks good as value in my sharepoint list.

but in scenario, I want to replace value from my blank value with other character as "-"
I need advice to resolved this my scenario.

please your comment.

thank You very much.

 

1 ACCEPTED SOLUTION

Accepted Solutions
WarrenBelz
Super User
Super User

Hi @dianhudayahr ,

What exactly is that screenshot a picture of (a gallery?). 

If you are referring to the label in your code, you could do this

With(
   {
      wHRB,
      LookUp(
         'Inpeksi Produk',
         QrcodeID = TextInputMS_Qrcode.Text
      ).Hrb
   },
   If(
      IsBlank(wHRB),
      "-",
      wHRB
   )
)

 

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

2 REPLIES 2
WarrenBelz
Super User
Super User

Hi @dianhudayahr ,

What exactly is that screenshot a picture of (a gallery?). 

If you are referring to the label in your code, you could do this

With(
   {
      wHRB,
      LookUp(
         'Inpeksi Produk',
         QrcodeID = TextInputMS_Qrcode.Text
      ).Hrb
   },
   If(
      IsBlank(wHRB),
      "-",
      wHRB
   )
)

 

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.

 

Hi @WarrenBelz 

firstly, i said thank you for your quick response. I appreciate.
Yes, the picture of screenshoot is report from ms.word (template).

I already try code from you, and its lil bit perfectly completed. So I correct with this

With(
    {
        WHRB: LookUp(
            'Inpeksi Produk',
            QrcodeID = TextInputMS_Qrcode.Text
        ).Hrb
    },
    If(
        IsBlank(WHRB),
        "-",
        WHRB
    )
)

 

And it's working..

once more.. I very thankful for your advice. 🙂 bravo 

Helpful resources

Announcements
Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

Carousel_PP_768x460_Wave2 (1).png

2022 Release Wave 2 Plan

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

365 EduCon 768x460.png

Microsoft 365 EduCon

Join us for two optional days of workshops and a 3-day conference, you can choose from over 130 sessions in multiple tracks and 25 workshops.

Top Solution Authors
Users online (3,389)