Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
4 years ago
Solved

Slicer to Exclude

I have the original dataset as below ID DayID Amount Type 1 1 12 A 1 1 40 B 1 3 10 A 1 3 20 C 2 3 30 D 2 4 40 A 2 3 50 C 3 4 60 B 3 4 70 C...
  • BA_Pete's avatar
    BA_Pete
    4 years ago

    Anonymous ,

     

    Ok, I see.

    In that case, I would create a [groupID] column by merging the [ID] and [DayID] fields in the unsummarised table ('table').

    Then reference this table to create your summarised table ('summTable') by grouping on [ID], [DayID], [groupID], and SUM[Amount].

    Send to model and relate table[groupId] to summTable[groupID]. Change relationship filter direction to BOTH.

    Use table[Type] as your slicer field, summTable[Amount] (bins) as your X axis, and COUNTROWS(summTable) as your frequency measure on Y axis.

     

    *NOTE* Ensure you understand the behaviour of this model setup. Using an unsummarised dimension to filter summarised data may give you unexpected results i.e. the single [Type]s selected in the slicer will output entire summarised groups, not just values specifically related to that [Type].

     

    Pete