Forum Discussion
Row based slicer
- Anonymous9 years ago
A friendy coleague just helped me out, we used following measure to achieve what I was looking for, since your solution didn't work out:
SumValue = IF(HASONEVALUE('Table'[KPI]); SWITCH(VALUES('Table'[KPI]); "EBIT";CALCULATE(SUM('Table'[VALUE]);ALL('Table'[EX_DT_IN]));SUM('Table'[VALUE]) ))
Thank you so much, but it doesn't seem to work. Unfortunately, I'm still learning DAX and have only basic understanding and can't figure out where the error is..
Hi Anonymous,
You can put these formula and test again.
According to your screenshot, it seems not support ',', I'd like to suggest you use ';' character to replace ',' .
Calculate= var currKPI=LASTNONBLANK(Table[KPI];[KPI]) Return IF(currKPI<>"EBIT"; calculate(sum(Table[VALUE]);ALLSELECT(Table));calculate(sum(Table[VALUE]);ALL(Table)))
Regards,
Xiaoxin Sheng
- Anonymous9 years agoNot applicable
Hi Anonymous
it still doesn't work. I had to change "ALLSELECT" to "ALLSELECTED", since it didn't recognize ALLSELECT as a function. But it still doesn't work. Any further ideas?
Thanks in advance and best regards.
- Anonymous9 years agoNot applicable
A friendy coleague just helped me out, we used following measure to achieve what I was looking for, since your solution didn't work out:
SumValue = IF(HASONEVALUE('Table'[KPI]); SWITCH(VALUES('Table'[KPI]); "EBIT";CALCULATE(SUM('Table'[VALUE]);ALL('Table'[EX_DT_IN]));SUM('Table'[VALUE]) ))- Shruti_05276 years agoNew Member
Hi,
How to add slicers in row headers matrix visual in power bi.