Forum Discussion

Thomas94401's avatar
Thomas94401
Helper I
2 years ago

Power BI Button

Hello !
I have a rather specific question about the Power BI buttons.
I have a first visual where I have to select a customer. I have a measure that calculates the customer's headcount. I've added a button to the page: I want people to be able to press this button to go to the 2nd page only if the headcount is greater than 100. If the headcount is less than 100, I don't want people to be able to press the button.
Do you know if this is possible?

1 Reply

  • Thomas94401 yes you can, create a measure for navigation:

     

    Goto Page Measure = 
    VAR __Headcount = [Head Count Measure]
    VAR __PageName = "Your Page Name"
    RETURN
    IF ( __Headcount > 100, __PageName )

     

    in the destination under action by clicking the fx button, assign the above measure.