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

Get inspired! Check out the entries from the Power BI DataViz World Championships preliminary rounds and give kudos to your favorites. View the vizzies.

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
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code FABINSIDER for a $400 discount!

FebPBI_Carousel

Power BI Monthly Update - February 2025

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

March2025 Carousel

Fabric Community Update - March 2025

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