Forum Discussion
table with dynamic values (columns)
- Anonymous9 years ago
Hi giorgiokatr,
Sorry, It seems like I have forgot to paste the measures.
field1 =SWITCH([Selected],"Sales",Max(Table[Col1]),"Other",Max(Table[Col3])) field2 =SWITCH([Selected],"Sales",Max(Table[Col2]),"Other",Max(Table[Col4]))
Regards,
Xiaoxin Sheng
Cool,
1. We can't change the calculated column value while selecting in slicer.
but we can achieve whatever u looking for with the help of Calculated measure. please share your fromula .
i am sharing my pbix to help you understand if it is possible!
https://drive.google.com/file/d/0Bw-_YmJ3Q49gTzVKUjdhUEZUQ0U/view?usp=sharing
- Anonymous9 years agoNot applicable
Hi giorgiokatr,
You can refer to below method to show the dynamic fields value.
Add a index column to current table.(let measure calculate all the rows)
Add a measure to slicer's source table to get the selected value.
Selected = if(HASONEVALUE(selection[Slicer]),VALUES(selection[Slicer]),BLANK())
Create the table visual.
Result:
Notice: if table not contain the index column, it will only show one value.
Regards,
Xiaoxin Sheng
- giorgiokatr9 years agoHelper V
thanks Anonymous! what is the dax formula for field1 and field2?
- Anonymous9 years agoNot applicable
Hi giorgiokatr,
Sorry, It seems like I have forgot to paste the measures.
field1 =SWITCH([Selected],"Sales",Max(Table[Col1]),"Other",Max(Table[Col3])) field2 =SWITCH([Selected],"Sales",Max(Table[Col2]),"Other",Max(Table[Col4]))
Regards,
Xiaoxin Sheng