Forum Discussion
current value
Hi...could anyone please help me with this?
I try to create a new query, then from 'Manage Parameters' tab I selected 'new parameter' then I am stuck with this so called 'current value'....where do I get current value number?
- Anonymous9 years ago
Hi ksax
I usually enter the value I want to use for my query in the current value.
Hi ksax,
The Current Value setting allows users to specify the value for the parameter in the current report.
It should be noted that if the Required check box is enabled, this field must be filled in. Otherwise the Current Value is optional. This item is very much like the default value for a parameter in SSRS. You may also want to note that currently only a single value is allowed. For more details about using Parameters in Power BI, you can refer to this article. :smileyhappy:
Regards
10 Replies
- v-ljerr-msftMicrosoft Employee
Hi ksax,
The Current Value setting allows users to specify the value for the parameter in the current report.
It should be noted that if the Required check box is enabled, this field must be filled in. Otherwise the Current Value is optional. This item is very much like the default value for a parameter in SSRS. You may also want to note that currently only a single value is allowed. For more details about using Parameters in Power BI, you can refer to this article. :smileyhappy:
Regards
- AnonymousNot applicable
What if you want the param to have a value from a query rather than a literal value? For example, I have a query that returns a list with one value (a date). I want my parameter to have that value, but instead it's only passing "Current Value" to the query (which is no more useful than hardcoding some value into the query).
- beerygazFrequent Visitor
I'm trying to do something similar. I'd like "Current Calue" to be Now() so that it suggests today's date as the default vlaue for the parameter. Is there a way to do this?
- AnonymousNot applicable
I have the same question: how to FORCE a Parameter to return the 'max' or single value in the List? It currently says 'blank'. Not found an answer yet, but have not spent more than 30 mins googling.
- AnonymousNot applicable
Great suggestion on the Required. Hoever, my Parameter now returns 'blank' in PowerQuery (! not in PowerBi Dax, in M code), even though it only holds one value in the List. How to fix this?
Note my question is for PowerBi Report Server (Jan 2021). This might be fixed in Desktop version; you can use the filter slection as "use Parameter" rather than a Date. But not sure if that makes it work there either.
- AnonymousNot applicable
Hi ksax
I usually enter the value I want to use for my query in the current value.
- AnonymousNot applicable
We're also interested in andrewt's ask.