Forum Discussion

flaviosouzaab's avatar
flaviosouzaab
Regular Visitor
4 years ago
Solved

Data reduction in dimension tables

Hi, I have an Excel spreadsheet that connects to a SQL Server database to obtain data from a DW, my difficulty is in keeping in the dimension tables only the records that are present in the fact tab...
  • Anonymous's avatar
    Anonymous
    4 years ago

    If these are from the same database, a mere inner join from dimension to fact would normally be your best option (without the buffer, which causes the problem you describe above.

     

    You could also try a buffered list instead of table, by making a query that gets the distinct values from the customer column of the fact table, like List.Distinct(Fact[Customer])

     

    Name that query FilterValues.

     

    Now when you make your fact table query, filter like:

     

    Table.SelectRows(PriorStepOrTableName, each List.Contains(List.Buffer(FilterValues), [CustomerColumnNameFromThisFactTable]))

     

    --Nate

     

     


    Try using a buffered list instead of a buffered table:

     

    Table.SelectRowsFactTabls