Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
6 years ago
Solved

Filter Data Between daterange

I attempted to follow this thread on this channel but I think my issue is easier.

 

I have the below table (dates) that shows the beginning and ending of a month

StartDateEndDate
01/10/202031/10/2020
01/11/202030/11/2020

 

My other table (sales) has a date between these ranges

DateAmountStore
08/10/202088StoreA
11/10/202092StoreB
05/11/2020110StoreA

 

I would like a date slicer that returns the sum based on filtered data in table (Sales)

 

Q1. Would it best to use a SUMX aggregrator? 

 

Q2. How could I create a relationship between these two tables based only on the daterange?

 

I am a little stuck and would appreciate the help.

  • Hi Anonymous,

     

    You don't need a table with start and end. You can create just a date table and relate them.

     

    Use a slicer, you are gonna have the start/end dates to filter. Also, you can create more columns on your date table like month/year and use it on slicers.

     

    Check this file: Download PBIX 

     

    Did I answer your question? Mark my post as a solution!
    Ricardo

  • Hi Anonymous ,

     

     

    This is just an example, there are many ways to create the date table.

     

    Ricardo

     

6 Replies

  • camargos88's avatar
    camargos88
    Community Champion

    Hi Anonymous,

     

    You don't need a table with start and end. You can create just a date table and relate them.

     

    Use a slicer, you are gonna have the start/end dates to filter. Also, you can create more columns on your date table like month/year and use it on slicers.

     

    Check this file: Download PBIX 

     

    Did I answer your question? Mark my post as a solution!
    Ricardo