+ Reply to Thread
Results 1 to 5 of 5

Power Pivot - Creating slicer from dynamic lookup table

  1. #1
    Registered User
    Join Date
    04-22-2022
    Location
    The Netherlands
    MS-Off Ver
    365
    Posts
    3

    Power Pivot - Creating slicer from dynamic lookup table

    Hello,

    I have built a dashboard based on multiple data sources and wanted to be able to to filter those data sources with one single slicer. Therefore I have created different lookup tables in the data model

    Schermafbeelding 2022-09-21 115911.png

    The picture below shows one of the dynamic lookup tables that is loaded into the data model. In this case there is only 1 contractnumber, but it might occur that there are several and the [nvt] will make place for the new contractnumbers based on a formula. The problem is that these 5 slicers based on the shared lookup tables from the picture keep showing items with no data. Normally, with a slicer for a single data source, you can turn this off in slicer settings. Now the slicer shows the actual contract number 2019-68377, BUT also all the [nvt] ones (nvt means N/A actually).

    Is there a better way to make dynamic tables that scale with more or less contractnumbers or to hide the slicer items with no data?

    Schermafbeelding 2022-09-21 120217.png


    The slicer below shows as if all the [nvt] items have actual data, but they do not. Slicer settings --> hide items with no data does not seem to work for data model slicers..?
    Schermafbeelding 2022-09-21 120632.png

  2. #2
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,534

    Re: Power Pivot - Creating slicer from dynamic lookup table

    Without seeing a sample file it is hard to say what might work.
    That said Excel tables are generally expandable without using place holders like [nvt 2]. I suggest that you experiment by removing rows P3:P14 from the table and leaving the one, P2, for contract number 2019-68377. Next add a row to the table by pressing the tab key and add another contract number. See if refreshing [all] the pivot table will display the second contract number. If so then you can expand the table with new contract numbers only when they have data.
    Let us know if you have any questions.
    Consider taking the time to add to the reputation of everybody that has taken the time to respond to your query.

  3. #3
    Registered User
    Join Date
    04-22-2022
    Location
    The Netherlands
    MS-Off Ver
    365
    Posts
    3

    Re: Power Pivot - Creating slicer from dynamic lookup table

    Thank you for your reply.






    Let me further explain the way I was planning to build the dashboard in sequential steps:

    1. Data source with with 10k rows (might contain more than 1 unique contract number)
    2. PivotTable: shows list of unique contractnumbers based on data source from step 1
    3. Because a pivot table cannot be added to the data model in Power Pivot, I made a 'normal' table that references the pivot table with formula =IF(cell in pivot table <>""; cell in pivot table; [nvt]. I then added this table to the data model

    When I would delete P3:P14 and only leave 2019-68377 in P2, the table would then not automatically expand when more contracts are loaded in through the pivot table, right? I have tried everything but the table reading directly from the data source or from the pivot table does not seem to get longer whenever I refresh the data.

  4. #4
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Power Pivot - Creating slicer from dynamic lookup table

    HOW TO ATTACH YOUR SAMPLE WORKBOOK:

    Fast answers need clear examples. Post a small Excel sheet (not a picture) showing realistic & representative sample data WITHOUT confidential information (10-20 rows, not thousands...) and some manually calculated results. For a new thread (1st post), scroll to Manage Attachments, otherwise scroll down to GO ADVANCED, click, and then scroll down to MANAGE ATTACHMENTS and click again. Now follow the instructions at the top of that screen.
    Notice my main language is not English.

    I appreciate it, if you reply on my solution.

    If you are satisfied with the solution, please mark the question solved.

    You can add reputation by clicking on the star * add reputation.

  5. #5
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,534

    Re: Power Pivot - Creating slicer from dynamic lookup table

    It may be that Power Query (Get & Transform) could be used to accomplish steps 2 and 3 from post #3.
    Again, it would be easier to help if you would upload a sample workbook as per oeldere's post (#4).
    Let us know if you have any questions.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Power pivot slicer and filter propagation
    By calem in forum Excel Charting & Pivots
    Replies: 3
    Last Post: 07-16-2022, 09:09 AM
  2. Showing error while creating Pivot table in power query
    By rithamworld in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-16-2021, 06:40 PM
  3. Replies: 3
    Last Post: 09-03-2019, 10:22 PM
  4. [SOLVED] Power pivot or pivot table for connecting data and creating calculated fields
    By jaryszek in forum Excel Charting & Pivots
    Replies: 9
    Last Post: 02-06-2019, 08:31 AM
  5. Replies: 1
    Last Post: 11-12-2018, 02:46 PM
  6. Creating a Pivot Table from Power Pivot Data Model?
    By nobodyukno in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-17-2017, 12:02 PM
  7. Connecting Sloicer from Power Pivot to Slicer from Regular Pivot
    By rv02 in forum Excel Charting & Pivots
    Replies: 0
    Last Post: 11-27-2015, 06:13 AM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1