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

July 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! Learn more

Reply
Incarnadine
Frequent Visitor

Direct Query & Paramters

Hi,

 

I have a dashboard that will be embedded into my company website, users will login to the website and an ID will be passed to the dashboard using microsoft API to filter the data accordingly. I originally tried with my data called through Import Mode, however since refreshing the dataset is asynchonous and I will have multiple users accessing at once this is not possible.

 

I then tried using Direct Query however I can't seem to call a stored proc and pass a parameter through, is this possible? If not are there any workarounds?

 

Thanks

5 REPLIES 5
Greg_Deckler
Community Champion
Community Champion

@Incarnadine Check the roadmap, I thought there was something on the roadmap for parameter support for Direct Query:

https://docs.microsoft.com/en-us/power-platform-release-plan/2020wave2/power-bi/planned-features

https://docs.microsoft.com/en-us/power-platform-release-plan/2020wave2/power-bi/end-user-editing-que...

 



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...

@Greg_Deckler - Thanks for your response however I don't think it will work in my situation.

 

The dashboard will be accessed by external companies and the token needs to be passed to the dashboard in the background as opposed to a slicer selection mentioned in your suggestion.

@Incarnadine Not 100% on your situation but it sounds like you should be using RLS or that you should be using Power BI Embedded (A SKU's)



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...

@Greg_Deckler  - I'm using PBI Embedded. I had it all working fine using Import mode - issue was the dataset can't be refreshed simultaneously by multiple users. I was able to use the below query to pass the parameter through however this functionality doesn't seem to exist in Direct Query (Which would allow multiple users to refresh data simultaneously)

 

let
Source = Sql.Database("ServerName", "Databasename",
[Query="EXEC StoredProc "&Parameter])
in
Source

@Incarnadine Let me see who I can call in on this @dm-p 



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...

Helpful resources

Announcements
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

60 days of Data Days Carousel

Data Days 2026

Join Fabric Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.