Forum Discussion

hymieho's avatar
hymieho
Resolver I
9 years ago
Solved

Calculated table with SUMMARIZE that changes dynamically based on disconnected filter/slicer

I have a report with a disconnected slicer that also includes a matrix to show details:   I would like the details matrix to only show records that match the criteria of the slicers. "LEAD CR...
  • hymieho's avatar
    hymieho
    9 years ago

    Thanks Aneglia. The "Lead Created" slicer with "Since last Monday" is just the slicer's title--it is not the name of the table.  I was able to achieve the desired result by using the same pattern I used to build the tornado chart that I referenced above by creating a new Leads Detail table. Leads Detail is a union of each of the time sliced data (last week, last month, etc.  The same record can be in multiple tranches, so the actual data grid is populated by the source 'Leads' table. Note I have bidirectional cross-filtering turned on in the relationship between Leads and Leads Detail. 

     

    Hope this helps someone else!

     

    ~Hymie

     

     

    Leads Detail = 
    UNION(
    SUMMARIZECOLUMNS(
    Leads[Lead ID],
    Leads[Lead Dim ID],
    Leads[Sales Professional],
    Leads[Lead Source],
    Leads[Lead Status],
    Leads[Lead State],
    Leads[Customer Name],
    Leads[Lead Name],
    Leads[Product],
    Leads[Lead Created],
    Leads[Lead Last Modified],
    Leads[Lead Last Activity],
    Leads[Territory],
    Leads[.],
    Leads[Region],
    FILTER('Leads','Leads'[IsSinceLastMonday]=1),
    "Band ID",1
    )
    ,
    SUMMARIZECOLUMNS(
    Leads[Lead ID],
    Leads[Lead Dim ID],
    Leads[Sales Professional],
    Leads[Lead Source],
    Leads[Lead Status],
    Leads[Lead State],
    Leads[Customer Name],
    Leads[Lead Name],
    Leads[Product],
    Leads[Lead Created],
    Leads[Lead Last Modified],
    Leads[Lead Last Activity],
    Leads[Territory],
    Leads[.],
    Leads[Region],
    FILTER('Leads', Leads[IsThisMonth]=1),
    "Band ID",2
    )
    ,
    SUMMARIZECOLUMNS(
    Leads[Lead ID],
    Leads[Lead Dim ID],
    Leads[Sales Professional],
    Leads[Lead Source],
    Leads[Lead Status],
    Leads[Lead State],
    Leads[Customer Name],
    Leads[Lead Name],
    Leads[Product],
    Leads[Lead Created],
    Leads[Lead Last Modified],
    Leads[Lead Last Activity],
    Leads[Territory],
    Leads[.],
    Leads[Region],
    FILTER('Leads', Leads[IsThisQuarter]=1),
    "Band ID",3)
    ,
    SUMMARIZECOLUMNS(
    Leads[Lead ID],
    Leads[Lead Dim ID],
    Leads[Sales Professional],
    Leads[Lead Source],
    Leads[Lead Status],
    Leads[Lead State],
    Leads[Customer Name],
    Leads[Lead Name],
    Leads[Product],
    Leads[Lead Created],
    Leads[Lead Last Modified],
    Leads[Lead Last Activity],
    Leads[Territory],
    Leads[.],
    Leads[Region],
    FILTER('Leads', Leads[IsThisYear]=1),
    "Band ID",4)
    ,
    SUMMARIZECOLUMNS(
    Leads[Lead ID],
    Leads[Lead Dim ID],
    Leads[Sales Professional],
    Leads[Lead Source],
    Leads[Lead Status],
    Leads[Lead State],
    Leads[Customer Name],
    Leads[Lead Name],
    Leads[Product],
    Leads[Lead Created],
    Leads[Lead Last Modified],
    Leads[Lead Last Activity],
    Leads[Territory],
    Leads[.],
    Leads[Region],
    FILTER('Leads', 'Leads'[IsSinceLastMonday]<>1 && Leads[IsThisMonth]<>1 && Leads[IsThisQuarter]<>1 && Leads[IsThisYear]<>1),
    "Band ID",-1)
    )