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

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

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. 

 

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
Sept PBI Carousel

Power BI Monthly Update - September 2024

Check out the September 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.

Sept NL Carousel

Fabric Community Update - September 2024

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