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

See when key Fabric features will launch and what’s already live, all in one place and always up to date. Explore the new Fabric roadmap

Reply
Anonymous
Not applicable

Use of query parameter in DAX or visual

I am new to the Query Parameter.  It seems the query parameter is only for use in Power Query.   Is it possible to use the parameter in DAX or visual display , e.g. display the parameter selected in textbox.   Use parameter selected in measure calculation? 

 

Any answer or link to reference is appreciated.

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Found the solution! seems I can use the parameter in DAX or in data model, check out here - https://workingondata.wordpress.com/2018/03/27/show-dataset-parameter-values-in-power-bi-reports/

 

 

View solution in original post

4 REPLIES 4
Anonymous
Not applicable

Found the solution! seems I can use the parameter in DAX or in data model, check out here - https://workingondata.wordpress.com/2018/03/27/show-dataset-parameter-values-in-power-bi-reports/

 

 

amitchandak
Super User
Super User

@Anonymous , You can use what if , but that is limited to number or series. For text I doubt that. For text you can create an independent table and use the values in table in your measure/s. 

 

Full Power BI Video 20 Hours YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Hi @amitchandak , can you give an example for 'text'?

 

Thanks and best regards,

Hossein

mahoneypat
Microsoft Employee
Microsoft Employee

The DAX side has it own parameters too, called What-If parameters.  Does this meet your need?

https://docs.microsoft.com/en-us/power-bi/transform-model/desktop-what-if

 

Regards,

Pat





Did I answer your question? Mark my post as a solution! Kudos are also appreciated!

To learn more about Power BI, follow me on Twitter or subscribe on YouTube.


@mahoneypa HoosierBI on YouTube


Helpful resources

Announcements
May PBI 25 Carousel

Power BI Monthly Update - May 2025

Check out the May 2025 Power BI update to learn about new features.

May 2025 Monthly Update

Fabric Community Update - May 2025

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