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

Get certified in Microsoft Fabric—for free! For a limited time, the Microsoft Fabric Community team will be offering free DP-600 exam vouchers. Prepare now

Reply
SruthiK
New Member

Power BI Parameterization to Snowflake Data Source

Hello, I am trying to set parameterized data source for snowflake in power bi. I am able to parameterize for single database connection it's working and now trying to do for multiple databases. I am using the following query but it's not helping. Please suggest .    let
Source = Snowflake.Databases(Snowflake,DW),
DB_Database = Source{[Name=SnowflakeDB,Kind="Database"]}[Data],
MO_DB =
if DB_Database = "DB1"
then DB_Database = Source{[Name=SnowflakeDB,Kind="Database"]}[Data]
else
DB_Database = Source{[Name="DB2",Kind="Database"]}[Data],
DATAMART_Schema = MO_DB{[Name=SnowflakeSchema,Kind="Schema"]}[Data],
MO_View = DATAMART_Schema{[Name="View_MO",Kind="View"]}[Data],
#"Filtered Rows" = Table.SelectRows(MO_View, each [MONTHINFO] >= #date(2021, 1, 1))
in
#"Filtered Rows"

2 REPLIES 2
v-xiaotang
Community Support
Community Support

Hi @SruthiK 

Thanks for reaching out to us.

Is there any error message when you try to parameterize for multiple databases?

 

 

Best Regards,

Community Support Team _Tang

If this post helps, please consider Accept it as the solution to help the other members find it more quickly.

Hi, we are not getting any error message and we are not able to get the expected result also we are unable to choose parameters while getting data source.

Helpful resources

Announcements
OCT PBI Update Carousel

Power BI Monthly Update - October 2024

Check out the October 2024 Power BI update to learn about new features.

September Hackathon Carousel

Microsoft Fabric & AI Learning Hackathon

Learn from experts, get hands-on experience, and win awesome prizes.

October NL Carousel

Fabric Community Update - October 2024

Find out what's new and trending in the Fabric Community.