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
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

3 REPLIES 3
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. 

 

mahoneypat
Employee
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
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.