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

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.

Reply
JamesCarnegie
Frequent Visitor

Using a Parameter as a Data Source

I have a parameter that changes depending on the value of a different parameter. I am trying to have it so this paramater will be treated as if it were typed in and not simply displayed as text. The image is the source step of a blank query.

 

JamesCarnegie_0-1656087625609.png

 

Alternatively, it would also work if I could solve the problem below:

 

JamesCarnegie_0-1656090537583.png

 

It seems that having quotations within the quotations is what is causing the problem. 

 

Help would be much appreciated. Have a nice day 🙂

1 ACCEPTED SOLUTION

Thank you for your response. I was able to make it work using if statements depending on the parameter value.

View solution in original post

2 REPLIES 2
v-zhangti
Community Support
Community Support

Hi, @JamesCarnegie 

 

Please refer to the following link, hope it can help you.

https://www.tessellationtech.io/how-to-parameterize-data-sources-power-bi/ 

https://community.powerbi.com/t5/Desktop/Dynamic-Data-Source-based-on-parameter/m-p/260077 

https://community.powerbi.com/t5/Desktop/Change-query-source-with-a-parameter/m-p/381145 

 

Best Regards,

Community Support Team _Charlotte

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

Thank you for your response. I was able to make it work using if statements depending on the parameter value.

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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