Forum Discussion

mpcosmin's avatar
mpcosmin
Frequent Visitor
3 years ago

Dynamic Parameters ( Multiple parameters that talk to themselves ) EG: Plant-Line-Material

Hey PowerBI Rockstars! 
It's Cosmin, and guess what? My team and I are always pushing the envelope when it comes to Direct Query functionalities. One area that's been an interesting playground for us? Dynamic parameters in hierarchical granularities! 
Picture this: You've got hard-coded parameters in your SQL code—Plant Name, Business Area, Line Name—and you want these to play nice with each other. Choose a Plant Name, and voila! Your Business Area and Line Name parameters automatically shrink down to only relevant options. Sounds like a dream, right? 
Unlocking this capability is something we've been exploring and it's set to take our Direct Query and Big Data reporting game to elite levels. Have you ventured into this territory? Got some insights to share? Let's connect and raise the bar together! 

8 Replies

  • vanessafvg's avatar
    vanessafvg
    Icon for Community Champion rankCommunity Champion

     could you not just pass a plant name via a filter in power bi and use cte's in a view in sql to do the rest?  you need to give more information, this is sort of conceptual but without understanding the structure of your  model its hard to advise on the situation

    • mpcosmin's avatar
      mpcosmin
      Frequent Visitor

      Thanks, Vanessa for your response. I will try to be more specific and will share some screenshots.

      • mpcosmin's avatar
        mpcosmin
        Frequent Visitor

        Thought to redo the first picture: