Forum Discussion
Anonymous
9 years agoNot applicable
Slicer Value in Column Formula
I'm wanting to create a column with the formula: =IF(<value selected in slicer>=MyTable[MyColumn],<that value>,"Other Vendors") MyColumn has static values, but over 8,000 different ones. Idea...
- Anonymous9 years ago
Hi Anonymous,
Power bi not support dynamic calculate column based on slicer, you can use measure to instead the column.
Create a table to store value.
Selector Table = VALUES('sample'[Recommendation Id])Add measure to Selector table to get selected value.
selected = IF(HASONEVALUE('Selector Table'[Recommendation Id]),VALUES('Selector Table'[Recommendation Id]),BLANK())Add measure to original table to calculate based on slicer.
Check = IF(MAX('sample'[Recommendation Id])=[selected],[selected],"Other Vendors")Regards,
Xiaoxin Sheng
Anonymous
9 years agoNot applicable
Hi Anonymous,
Power bi not support dynamic calculate column based on slicer, you can use measure to instead the column.
Create a table to store value.
Selector Table = VALUES('sample'[Recommendation Id])
Add measure to Selector table to get selected value.
selected = IF(HASONEVALUE('Selector Table'[Recommendation Id]),VALUES('Selector Table'[Recommendation Id]),BLANK())
Add measure to original table to calculate based on slicer.
Check =
IF(MAX('sample'[Recommendation Id])=[selected],[selected],"Other Vendors")
Regards,
Xiaoxin Sheng
Anonymous
6 years agoNot applicable
Thank you! I was searching for hours trying to figure this out. All the best 🙂