Intellipaat Back

Explore Courses Blog Tutorials Interview Questions
0 votes
2 views
in BI by (11.1k points)
edited by
Is there any way that I can use the power query parameter inside Tsql and allow to edit the source query?

1 Answer

0 votes
by (22.5k points)
edited by

Use the following formulas

= Sql.Database("server", "db", [Query="SELECT * FROM ABC WHERE Date = [Parameter]"])
= Sql.Database("server", "db", [Query="SELECT * FROM ABC WHERE Date = "&Text.From(Param)])

 let

    Source = Sql.Database("server", "db"),
    dbo_ABC = Source{[Schema="dbo",Item="ABC"]}[Data]
in
    dbo_ABC

Are you new to Power Bi, Look at the Power Bi Training provided by Intellipaat

Check the following youtube link: 

Related questions

0 votes
1 answer
0 votes
1 answer
0 votes
1 answer
asked Nov 24, 2020 in BI by Chris (11.1k points)
0 votes
1 answer
0 votes
1 answer

31k questions

32.8k answers

501 comments

693 users

Browse Categories

...