Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
Hi
I am selecting from view in my projects
I want change Data source for all queries to generic Data Source when I will move from dev to prod
1. I created Blank Query
DS_AG
usinng Advice editor I specified Source as
let
Source = Sql.Database("DESKTOP-DJZ12\AGCMS", "PowerBIDX")
in
Source
In my Existing Query01 Source
let
Source = Sql.Database("DESKTOP-DJZ12\AGCMS", "PowerBIDX", [Query="SELECT [DATAAREAID] as LegalEntity,#(lf) [NAME] as LegalEntityName#(lf)FROM [V_CompaniesLegalEntities]"])
in
Source
I want to replace "DESKTOP-DJZ12\AGCMS", "PowerBIDX" with DS_AG
something like
let
Source = Sql.Database("DS_AG", [Query="SELECT [DATAAREAID] as LegalEntity,#(lf) [NAME] as LegalEntityName#(lf)FROM [V_CompaniesLegalEntities]"])
in
Source
please help with syntax or show example
Solved! Go to Solution.
Hi @Alex_G7 ,
Based on my test, we can add parameters firstly in power query. I take SQL Server as an example here as the same as yours.
Then we can get data and use the Parameter that we created. For more details, please check the online document.
Hi @Alex_G7 ,
Based on my test, we can add parameters firstly in power query. I take SQL Server as an example here as the same as yours.
Then we can get data and use the Parameter that we created. For more details, please check the online document.
Thank ypu
its is very simply and wokring solution
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
113 | |
99 | |
82 | |
70 | |
60 |
User | Count |
---|---|
149 | |
114 | |
107 | |
89 | |
67 |