The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredCompete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.
Hi,
This seems like it should be really easy, alas I am a new user of DAX. I have a table and I would like a measure to retrieve a value given the column and row names. I have a measure that uses "FILTER", but I need something that also filters for the "Min" column regardless of the value in the table. I am not trying to calculate anything, I am quite simply trying to query for a value given the column and row names.
The measure looks like this:
Pressure_Min = FILTER(SensorTable, [Sensor] = "Pressure" && {add something to filter for column = [Min]})
This measure would grab the value 5 to use as a limit value for a gauge visual. Thanks for the help.
Sensor | Min | Max |
Pressure | 3 | 5 |
Temperature | 80 | 100 |
Solved! Go to Solution.
You can't reference a column with a string variable in DAX; transform the dataset,
Thanks to the great efforts by MS engineers to simplify syntax of DAX! Most beginners are SUCCESSFULLY MISLED to think that they could easily master DAX; but it turns out that the intricacy of the most frequently used RANKX() is still way beyond their comprehension! |
DAX is simple, but NOT EASY! |
You can't reference a column with a string variable in DAX; transform the dataset,
Thanks to the great efforts by MS engineers to simplify syntax of DAX! Most beginners are SUCCESSFULLY MISLED to think that they could easily master DAX; but it turns out that the intricacy of the most frequently used RANKX() is still way beyond their comprehension! |
DAX is simple, but NOT EASY! |
User | Count |
---|---|
28 | |
10 | |
8 | |
6 | |
5 |
User | Count |
---|---|
33 | |
13 | |
12 | |
9 | |
7 |