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.
As @tamerj1 mentioned, deleted "DEFINE" and replace EVALUATE with a RETURN. Basically, the key is, you're defining a variable which can then be passed as an argument and returning the named variable.
@azakir
Yes, when using Power Bi desktop you don't use DEFINE and EVALUATE as defining and evaluation is automatically performed by the engine. However, that would be required when using DAX Studio.
Hi @wyanjaspew
Delete DEFINE
In line 14 you need to specify the name of the column like "Product Name", 'Product'[Product]. Same foe line 15
Delete lines 18 and 19
Replace EVALUATE in line 21 with RETURN
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
37 | |
25 | |
19 | |
14 | |
8 |
User | Count |
---|---|
69 | |
48 | |
44 | |
19 | |
15 |