Forum Discussion

ezequiel's avatar
ezequiel
Microsoft Employee
8 years ago

Using dates for filtering grouped table

Hi,

 

Sorry for the basic question, but I have a table that has the following fields:

 

- Transaction Date

- Category

- Subcategory

- Revenue

 

I need to biuld a view to show the info grouped by Category, subcategory and revenue. And also be able to filter by transaction date.

 

The solution I found was to group the info from the original table, but on that case I'm removing the Transaction Date to have the info grouped by Category and subcategory, reason why I can't use the date field later for filtering the information.

 

How can I solve that? What Am I missing? How can I include the date back for using it as s filter on the grouped info?

 

Thanks,

 

Ezequiel

5 Replies

  • Hey,

     

    maybe i'm missing some important fact, but why just create a slicer from the columns, whatever you select in the slicer filters / groups the rows in your table.

     

    Maybe you also might consider to create a separate date table and use relationshops in you data model.

     

    Hopefully this is what you are looking for and I'm not overlooking the obvious

     

    Regards

    Tom

    • ezequiel's avatar
      ezequiel
      Microsoft Employee

      Hi Tom, thanks for the reply. Maybe I'm missing something, but when I create a slicer on the raw data, and apply a filter (let's say February), the data that will be displayed are all the rows and not filtered. That is why I built the grouped info as shown below, but when I did that I lost the date field

       

       

      Any help will be great

       

      Ezequiel

      • TomMartens's avatar
        TomMartens
        Super User

        Hm,

         

        what I described above is basically the magic of Power BI, besides some ohter things :-)

         

        Can you provide a screenshot from the "Relationships" pane something similar like this

         

        or better provide sample data?

         

        Regards

        Tom