Forum Discussion
SELECTEDVALUE not filtering SUMMARIZEDCOLUMNS?
- 7 years ago
Hi MarkSL
You create a table with the formula.But table cannot be dynamically changed by slicer.So the selectedvalue would not work for table.It could only used in dynamic measure.For your requirement,you may use BudgetType in SoftwareTargets or HardwareTargets as slicer to filter the table.
https://www.kasperonbi.com/dax-selectedvalue-function/
https://www.sqlbi.com/articles/using-the-selectedvalue-function-in-dax/
Regards,
Hi MarkSL
You create a table with the formula.But table cannot be dynamically changed by slicer.So the selectedvalue would not work for table.It could only used in dynamic measure.For your requirement,you may use BudgetType in SoftwareTargets or HardwareTargets as slicer to filter the table.
https://www.kasperonbi.com/dax-selectedvalue-function/
https://www.sqlbi.com/articles/using-the-selectedvalue-function-in-dax/
Regards,
- MarkSL7 years ago
Helper V
Thanks for clarifying this for me.
You say that to filter the budget tables that I can slicer on BudgetType in SoftwareTargets or HardwareTargets, however I want one slicer to slice both tables, hence why I went with the summarised Dax table. Would your solution not require the user to have two slicers, one for each Targets table?
Thanks
Mark
- v-cherch-msft7 years ago
Microsoft Employee
Hi MarkSL
You may try below formula to create the table:
_BudgetTypes = DISTINCT ( UNION ( SELECTCOLUMNS ( HardwareTargets, "Type", HardwareTargets[type] ,"Year",HardwareTargets[Year],"BudgetType",HardwareTargets[BudgetType]), SELECTCOLUMNS ( SoftwareTargets, "type", SoftwareTargets[type],"Year",SoftwareTargets[Year],"BudgetType",SoftwareTargets[BudgetType] ) ) )Regards,