The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends September 15. Request your voucher.
Hi Team,
I am trying lookup a particular value in from my lookup table using optional parameters, meaning number of columns to lookup the data in lookup is going to vary based on the selected filters from another table. Is it possible to have optional parameters in LOOKUPVALUE DAX? Please clarify.
Solved! Go to Solution.
@ArulselvanD07,
It is not possible to use optional parameters in LOOKUPVALUE DAX as you describe. As stated in this article, both result_columnName and search_columnName parameters cannot be an expression.
LOOKUPVALUE( <result_columnName>, <search_columnName>, <search_value>[, <search_columnName>, <search_value>]…)
Regards,
Lydia
@ArulselvanD07,
It is not possible to use optional parameters in LOOKUPVALUE DAX as you describe. As stated in this article, both result_columnName and search_columnName parameters cannot be an expression.
LOOKUPVALUE( <result_columnName>, <search_columnName>, <search_value>[, <search_columnName>, <search_value>]…)
Regards,
Lydia
User | Count |
---|---|
65 | |
61 | |
60 | |
53 | |
30 |
User | Count |
---|---|
180 | |
88 | |
71 | |
48 | |
46 |