Forum Discussion
gbrmdc
7 years agoFrequent Visitor
Fill a column based on a value in two other columns
Hello, everyone! I'm working with a form that is automatically downloaded from a server and it consists of a table with responses from multiple different forms. Each row of the table is a dif...
- 7 years ago
You need to add the column using that expression in "Data" pane using "New Column" NOT in "Power Query Editor".
Also please note in the below expression LookupValue is name of the table I've stored sample data, in your case it should be your tablename. As LookupValue is a DAX keyword as well, that's why it was mentioned in single quote (I might have used another name to avoid confusion)
Check = CALCULATE(MAX('LookupValue'[Answer]),FILTER(ALL('LookupValue'),'LookupValue'[Question]="Location" && 'LookupValue'[ResponseID] = EARLIER([ResponseID])))
PattemManohar
Community Champion
7 years agoAs mentioned above, use your table name in place of "LookupValue" (It is the table name I've created for testing your scenario)
gbrmdc
7 years agoFrequent Visitor
- PattemManohar7 years ago
Community Champion
You are welcome !! Gabriel :smileyhappy: