Supplies are limited. Contact info@espc.tech right away to save your spot before the conference sells out.
Get your discountScore big with last-minute savings on the final tickets to FabCon Vienna. Secure your discount
Hello
I have a table in my model that contains parameters (i.e : (key, value)):
The table has 2 columns :
- ParamName : Name of the parameter (string)
- ParamValue : Value of the parameter (may be string, integer, date)
How can I create measure that returns the ParamValue based on a given ParamName ?
I tried that, but it does not work :
Measure =FIRSTNONBLANK(PARAM[ParamValue ];PARAM[ParamName ]="TheNameOfTheParameter")
Thanks
Solved! Go to Solution.
Hi @jct999 -
You can use LOOKUPVALUE for this:
Measure =
var __PN = SELECTEDVALUE(PARAM[ParamName])
RETURN
LOOKUPVALUE ( PARAM[ParamValue], PARAM[ParanName], __PN )
Hope this helps
David
Hi @jct999 -
You can use LOOKUPVALUE for this:
Measure =
var __PN = SELECTEDVALUE(PARAM[ParamName])
RETURN
LOOKUPVALUE ( PARAM[ParamValue], PARAM[ParanName], __PN )
Hope this helps
David
User | Count |
---|---|
12 | |
12 | |
8 | |
8 | |
6 |
User | Count |
---|---|
27 | |
19 | |
14 | |
11 | |
7 |