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.

 

View solution in original post

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
UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

M365 768x460.jpg

Microsoft 365 Collaboration Conference | December 7–9, 2021

Join us, in-person, December 7–9 in Las Vegas, for the largest gathering of the Microsoft community in the world.

Top Solution Authors
Top Kudoed Authors
Users online (3,314)