Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!
I have a table with 2 columns.
How can i assign the value in Column 2 to a measure based on the value of Column 1.
AKA, what is the DAX equivalent of the below SQL code
SELECT column2
FROM table
WHERE column1 = 'ThisValue'
You may create a measure like below;
Measure = IF ( MAX ( Table[Column1] ) = "ThisValue", MAX ( Table[Column2] ), BLANK () )
Regards,
Sadly that does not work as the value is not the max value.
And it then selects the incorrect value in the script
User | Count |
---|---|
125 | |
106 | |
99 | |
63 | |
62 |
User | Count |
---|---|
135 | |
116 | |
101 | |
71 | |
61 |