Forum Discussion
parvathisuku_90
5 years agoHelper I
Need help with parameter
I have create a parameter named 'AssetID' I need to use the same parameter in my measure Per Asset = CALCULATE( AVERAGE('cbdb alarm_occurences'[qty_alarms_7day]), 'cbdb alarm_occur...
- 5 years ago
You cannot directly use the parameter inside the DAX measure. But you can create a reference of the parameter. Then it will act as a table. After that, you can use it in DAX measure.
Attaching the PBIX file for your reference.
- 5 years ago
How can I convert parameter to table. Can you please provide an example.
- 5 years ago
- Open Edit Query window
- Right-click on Parameter
-
- Click Reference
- Then click on convert To Table
-
- 5 years ago
after = symbol, you could use selectedvalue() for getting the value.
selectedvalue() - 5 years ago
Thank you!!!!! Working fine...
parvathisuku_90
5 years agoHelper I
How can I convert parameter to table. Can you please provide an example.
nandukrishnavs
5 years agoCommunity Champion
- Open Edit Query window
- Right-click on Parameter
-
- Click Reference
- Then click on convert To Table
-
- parvathisuku_905 years agoHelper I
As mentioned, I have added the table.But not able to access the same in my measure
- nandukrishnavs5 years agoCommunity Champion
after = symbol, you could use selectedvalue() for getting the value.
selectedvalue()- parvathisuku_905 years agoHelper I
Thank you!!!!! Working fine...