Skip to main content

Notifications

Community site session details

Community site session details

Session Id : gZ50MBSCRzuYWTjtAaxBRH
Power Apps - Building Power Apps
Answered

Power BI Integration into Edit form

Like (0) ShareShare
ReportReport
Posted on 17 Sep 2019 16:10:53 by 47

Hey all,

 

I'm building an app that will allow users to comment within a filtered Power BI dashboard - having filtered based on location and time period, they will add comments using an edit form, and be displayed a gallery of comments related to that selected period.

 

Pretty straight forward. Except seems I'm new to Power BI integration and my Googling skills are failing me.

 

I've got the gallery filtering on both time and location no problem. Next up is the actual edit form. I want to pull the selected filters into the app as hidden fields that are saved to the SharePoint list. Once that's done I've got everything set, I'm just not sure the formula required to write that pull. Seeing a lot of lookup but can't make it function.

 

basically I have 2 fields in Power BI I need - 'time' and 'location'. Here's what I attempted but I'm getting back that this is providing a record - which is not what I want. I need a string for these fields to save back to SharePoint for my filter command on the gallery.

 

LookUp('SharePoint List', Location = First(PowerBIIntegration.Data).'PBI Location')

 

Error is "Expected text value"

 

Any guidance?  Thx!

Categories:
  • RezaDorrani Profile Picture
    12,141 on 17 Sep 2019 at 17:23:24
    Re: Power BI Integration into Edit form

    Hi @AndrewGeddes 

     

    glad it worked

  • AndrewGeddes Profile Picture
    47 on 17 Sep 2019 at 17:21:35
    Re: Power BI Integration into Edit form

    Think I've got it - syntax issue 

     

    LookUp('SharePoint List',Location=First(PowerBIIntegration.Data).'PowerBI Location').Location

  • Verified answer
    RezaDorrani Profile Picture
    12,141 on 17 Sep 2019 at 17:15:10
    Re: Power BI Integration into Edit form

    Hi @AndrewGeddes 

     

    LookUp('SharePoint List', Location = First(PowerBIIntegration.Data).'PBI Location')

     

    Location - text column in sp

    .'PBI Location' - text value coming from power bi

     

    add a label in your app and set its value to  First(PowerBIIntegration.Data).'PBI Location' - see the vlaue returned

     

    next hardcode the value and see if you get an error

    LookUp('SharePoint List', Location = "hardcoded value")

  • AndrewGeddes Profile Picture
    47 on 17 Sep 2019 at 17:12:28
    Re: Power BI Integration into Edit form

    Hey Reza,

     

    This is single line of text columns in SharePoint - to enable the filter function on the gallery. I had them as choice but filter command doesn't cooperate with PBI integration and non-string fields.

     

    In PowerBi, these are numerical values or text values in the column. Numberical is 4 digits, text is a mix of 7 characters (numbers and letters)

     

  • RezaDorrani Profile Picture
    12,141 on 17 Sep 2019 at 17:00:31
    Re: Power BI Integration into Edit form

    Hi @AndrewGeddes 

     

    Is Location a text column in sharepoint?

     

    PBI Location - check type of data being passed to powerapp

     

     

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

Understanding Microsoft Agents - Introductory Session

Confused about how agents work across the Microsoft ecosystem? Register today!

Markus Franz – Community Spotlight

We are honored to recognize Markus Franz as our April 2025 Community…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,670 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 66,013 Most Valuable Professional

Leaderboard
Loading started