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 III
Super User III

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 III
Super User III

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
PA_User Group Leader_768x460.jpg

Manage your user group events

Check out the News & Announcements to learn more.

Power Query PA Forum 768x460.png

Check it out!

Did you know that you can visit the Power Query Forum in Power BI and now Power Apps

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

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

R2 (Green) 768 x 460px.png

Microsoft Dynamics 365 & Power Platform User Professionals

DynamicsCon is a FREE, 4 half-day virtual learning experience for 11,000+ Microsoft Business Application users and professionals.

Users online (1,147)