Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
NightSpeedOne
New Member

Power BI

I am trying to use a value passed from Power BI to Power Apps and based on that value navigate to the correct screen. The issue is that, even though I can see the value and display it with a Notify without the navigate, as soon as I add the Navigate(), I lose the value. I also tried the StartScreen.

###OnStart

Set(varPBIScreenId,
    If(
            IsBlank(
                    Text(First([@@PowerBIIntegratio].Data).Screen)
                    ),
                    "0",
                    Text(First([@PowerBIIntegration].Data).Screen)
    )
);
If(
    varPBIScreenId = "1",
    Navigate(PAM_Profile_User),
    varPBIScreenId = "2",
    Navigate(PAM_Absence_Patch),
    varPBIScreenId = "3",
    Navigate(PAM_Profile_SideList),
    Navigate(PAM_Absence_Patch)
);
 
#### StartScreen
If(
Value(First([@PowerBIIntegration].Data).Screen) = 1,
PAM_Profile_User,
Value(First([@PowerBIIntegration].Data).Screen) = 2,
PAM_Absence_Patch,
Value(First([@PowerBIIntegration].Data).Screen) = 3,
PAM_Profile_SideList,
PAM_Profile_SideList
)
4 REPLIES 4
lbendlin
Super User
Super User

a value passed from Power BI to Power Apps

How are you passing that value?  Via the PowerApps visual?

Using the Power BI intergrated visual for Power Apps, insert the visual and then navigate to the power apps and edit the power apps, which creates the PowerBIIntegration object. I can use the value in a page and use notify to display it. As soon as I add Naigate to the OnStart the same Notify (Before the Navigate) is blank.

 

NightSpeedOne_0-1734695343558.png

 

Maybe OnStart is too soon.  See if you can use a different event, or a delay.

So you got me thinking about delay, while seaching and not finding a delay function I did find timer and it has auto start and onend. So I moved the timer to a splash screen and set it for 1 second and then added the navigate to the onend. Works perfect.

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.