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.
Hi,
I am fairly new to DAX and came across this line of code which I am unable to understand.
If understand correctly SELECTCOLUMNS take table as first argument. But in the case below {"Last 2 Months"}
doesn't exist. Also, not sure where [Value] is coming from and how its being recognized. Any help would be appreciated.
DAX:
You are just creating a table using hard code values....
Thanks.
I think I get it. Its creating a table using table constructor
What are you trying to do ?
SELECTCOLUMNS selects the columns you want to keep from a table, create new headers and/or add some expressions.
SELECTCOLUMNS({"Last 2 Months"},"Period",[Value])
Yes, but in this case neither the table exist nor the [Value] but its still giving me results.
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 |
---|---|
41 | |
21 | |
21 | |
14 | |
13 |
User | Count |
---|---|
43 | |
36 | |
33 | |
18 | |
18 |