Forum Discussion

Amzad's avatar
Amzad
Frequent Visitor
8 years ago
Solved

Between Years from 2016 till date

 I have a Table which has data  from 2009 to 2030 (2030 its not rite)      Source data from SQL                                                                i need to show only  years from 2016 to till date  

dateKeydateDOWInMonthDayOfYearWeekOfYearWeekOfMonthMonthMonthNameQuarterQuarterNameYearhourGroupKey
20270108041/8/202728221January1First20271
20160108051/8/201628221January1First20161
20090106021/6/200928221January1First20091

 

Thanks in Advance 

  • Do you get tour data from a SQL query ? if so you can use something like this in your where clause :

    mydate between ('2016',year(getdate()))

    otherwise you can try to filter in the header of the Power Query editor

2 Replies

  • Do you get tour data from a SQL query ? if so you can use something like this in your where clause :

    mydate between ('2016',year(getdate()))

    otherwise you can try to filter in the header of the Power Query editor

    • Amzad's avatar
      Amzad
      Frequent Visitor

      Thanks Ever, it work for now in Power Query Editor                                                                                                                                    I need to create a DAX measure  if you can help it will be great ,  permenant fix in reports as i have only read access to SQL                           i need create in Power BI report  ( i used this one DATESBETWEEN(<dates>,<start_date>,<end_date>) ) but it did work