Forum Discussion

PBIuserNPA's avatar
PBIuserNPA
Regular Visitor
2 years ago

CALCULATETABLE to filter fact table using slicer to make multiple selections

I have a fact table containing a list of unique Curricula (Curricula ID) and associated Location Type and Locations.

I need to present this in a visual table and filter this visual with a slicer containing only the six sites. I found a way to do this by splitting the fact table of All Curricula into Site Curricula, Regional Curricula and Global Curricula.

The method uses one-many and many-many relationships in a data model.

I suspect there may be a way to filter the All Curricula table using the same Site Slicer and a CALCULATETABLE. But I don't know how to begin.

 

Thank you

14 Replies

  • why would site locations control regional locations?

    • PBIuserNPA's avatar
      PBIuserNPA
      Regular Visitor

      Hello Ibendlin. Thank you for asking. Regional Locations are a subset of Global Locations. And Site Locations are a subset of Regional Locations. And curricula are assigned to each of these location types as listed in the All Curricula table. What I want to do is use one slicer that lists only Site Locations to filter the All Curricula table. For example, if a user selects site Bristol the All Curricula table would filter to show only curricula associated with Bristol, i.e., C10, C16, C23, C4 (for site Bristol), C25, C6 (for region Bristol, London or Oxford), C2, C21 (for region UK), and C1 and C20 (for Global).

      • lbendlin's avatar
        lbendlin
        Icon for Super User rankSuper User

        You will want to change your data model accordingly.  The rolloup would have to be done with measures that collect the facts from the current and the downstream levels.

         

        Please provide sample data that fully covers your issue.
        Please show the expected outcome based on the sample data you provided.