Forum Discussion
How to capture the selected value of a slicer in a formula?
Alternatively if you run Excel > 2010 on Windows, load your SourceTable to the Data Model (Power Pivot):
in I11 (returns the 1st item selected in Slicer_Name๐
=CUBERANKEDMEMBER("ThisWorkbookDataModel",
CUBESET("ThisWorkbookDataModel", Slicer_Name),
1
)
Corresponding sample attached
hi Lorenzo , I just want to ask if you know how to solve the duplicated value that is not displaying in pivot table just like in the photos. Even if I click in the slicer, duplicated value will just show 1 result. please help. Thank you.
- LorenzoFeb 21, 2023Silver Contributor
You're asking for a PivotTable to not behave as a PivotTable (what's the point???)
If you run Excel > 2013 / Windows you can do it though:
- Load the Pivot Source table to Power Query
- Add an ID (Index) column
- Build the PivotTable from the query
- Add the ID column to the Rows area of the PivotTable
- Hide the column that holds the [ID] fieldSample attached
- banderasxpFeb 21, 2023Copper Contributorwow, thank you, so my problem is I don't have an Id for each person. Thank you so much, God blessโค