How to create 30/60/90/Lifetime filter in Power BI

Поделиться
HTML-код
  • Опубликовано: 26 янв 2025

Комментарии • 56

  • @RSSwimmer
    @RSSwimmer Год назад +1

    This was an amazing instruction and just what I was looking for!

  • @sorendittrich7074
    @sorendittrich7074 Год назад +2

    Worked like a charm. Thank you.

  • @romariodejesusariaszuniga6558
    @romariodejesusariaszuniga6558 2 года назад +1

    you are the man, this infomation is pure goold

  • @seang2012
    @seang2012 2 года назад +1

    I am literally working on this now and your video is a much better solution than the one I was thinking of myself. Thanks!

  • @Paktvlounge
    @Paktvlounge Год назад +2

    Thank you very much for this amazing, simple solution to this problem. Please keep up the good work.

  • @pradeekb007
    @pradeekb007 Год назад +1

    Excellent presentation & I used this easily in one of my projects. Thanks a lot

  • @DhanushkaDilani
    @DhanushkaDilani Год назад

    I was go through many you-tube videos. but your Video is great and very easy to understand. therefore i was able to successfully done my Trend. thanks and Good Luck.

  • @philipedesouzasantos1201
    @philipedesouzasantos1201 Год назад +1

    Thank you so much for your "tutorial from scratch" (= really helpful

  • @RandyWilley-y2y
    @RandyWilley-y2y Год назад +1

    I was following the video and when I got to the part for creating DateRangePeriods table (around 7 minutes in) I get an error stating "The syntax for ')' is incorrect". I've compared my definition and it matches exactly what you show here. I'm not sure why I'm getting this error...

    • @AchieversDataEngineering
      @AchieversDataEngineering  Год назад

      Hi Randy,
      Hope it must be resolved by now. If not please do let me know I can try to help.
      Thank you for watching.

  • @lucaspelicheck2457
    @lucaspelicheck2457 2 года назад +1

    Thanks a lot, you save my day

  • @nathanmiller1337
    @nathanmiller1337 2 года назад +1

    Nicely done! Easy to follow along!

  • @clarafang6398
    @clarafang6398 Год назад +1

    Hi, It is a fantastic a way to make the lifetime filter, however I have no idea why it is not working for me when I totally follow your step, it is keep complaining the error. shows 'the syntax for ')' is incorrect. (DAX(Var last 7 days= ADDCOLOUMNS(CALCULATETABLE('DATETABLE',DATESBETWEEN('DATETABLE'[Date ],TODAY())),"Days range","7 days"))).' (the last 2 brackets doesn't exist on my dax, just shows by itself when it complains the error)
    is that because of the version difference or other reasons?

    • @AchieversDataEngineering
      @AchieversDataEngineering  Год назад

      Hi @Clara,
      Rather then due to version difference, It is more likely because of any syntax error in typing. It should work.
      Please let me know if it is still not working, we can discuss on it.
      achieversdataengineering@gmail.com

    • @JacksonDad1
      @JacksonDad1 5 месяцев назад

      I am encountering this same error. Did you ever find a solution? Thanks!

  • @FITBOYGAMING
    @FITBOYGAMING 2 года назад +1

    thank u so much!! this worked 100% PERFECTLY! 2022

  • @sarahmapeta4064
    @sarahmapeta4064 2 года назад +1

    Thank you ! If i want my chart to still show months with no data how do i do this please? eg if I select 90 days for this period and September has no data but i still want it to show on the chart as 0, How can i do this?

    • @AchieversDataEngineering
      @AchieversDataEngineering  2 года назад

      Hi @Sarah Thank you for watching.
      Have you selected the option to "show items with no data". Try this for both date and data columns.

    • @AchieversDataEngineering
      @AchieversDataEngineering  2 года назад

      If you still have any issue post this, please drop me an email on achieversdataengineering@gmail.com. Happy to connect.

  • @seang2012
    @seang2012 2 года назад +1

    Question…what IF instead of Lifetime I wanted to calculate from a specific date? We relaunched our site on 5/5/22 and that would be as far back as I want to go even though we have data from before that date. So for lifetime I would want any dates from today back to 5/15/22. What Dax would you use in that case?

    • @AchieversDataEngineering
      @AchieversDataEngineering  2 года назад

      Hi @Sean!
      This will be interesting. you can follow below steps to do this.
      1) Along with 30,60,90 as a new option at "custom" instead of lifetime.
      2) Add a between date slicer next to 30,60,90 slicer
      3) Create a measure which will return "False" if 30,60,90 is the selected value, but it should return "True" if custom is selected.
      4) Use this measure as a filter for between date slicer and set it to "True"
      5) Now if someone is selecting 30,60,90 then between date slicer will be disabled but when someone will click on "custom" date slicer will be enabled.
      6) Now you can also apply any other filter to limit the date range shown in between date slicer.
      7) Make sure to use edit interactions to allow 30,60,90 slicer to filter the between date slicer but between date slicer should not filter 30,60,90 slicer.
      Hope it will help!

  • @parisabrown
    @parisabrown Год назад +1

    This helped! Thank you!

  • @emmanuelaolaiya
    @emmanuelaolaiya Месяц назад +1

    Thank you so much

  • @ChrisLeacock
    @ChrisLeacock 2 года назад +1

    Great video! It's the only one that helped me figure out how to accomplish this filtering. But no matter what I do, when I try to create a relationship between DateTable and DateRangePeriods I get an error saying, "A circular dependency was detected." I tried creating DateTable using CALENDARAUTO, CALENDAR, making sure "Auto date/time for new files" was turned off and trying it all again, but nothing works. Any ideas?

    • @AchieversDataEngineering
      @AchieversDataEngineering  2 года назад

      Glad it helped! For "A circular dependency was detected" issue, it might require a some more attention how model is setup in your PBI report. Hope you followed it step by step the way it is shown in the video.

  • @AndrewBowers-gj5ej
    @AndrewBowers-gj5ej 2 года назад +1

    Do you know how i would create a comparison metric using this method? For Example; i want to select 30 days, have a measure for total sales in those 30 days and a measure for total sales during the 30 days prior to that?

    • @AchieversDataEngineering
      @AchieversDataEngineering  2 года назад

      Hi @Andrew, Sorry for the delayed response. Please check out this video.
      ruclips.net/video/o1aBWfubjj8/видео.html
      Hope it will help. Please let me know if you need any more help on that.
      Thank you for watching!

  • @sureshrao174
    @sureshrao174 2 года назад +1

    Sir I need 30 60 90 days sale chart when I select month or date in the date and month selection how to do it.

    • @AchieversDataEngineering
      @AchieversDataEngineering  2 года назад

      Hi Suresh, could you please rephrase your question. If I understood it correctly maybe you can use a date slicer and make it a "Relative Date" slicer. Please let me know if you had a different question.

  • @ashoks8935
    @ashoks8935 3 года назад +1

    Very useful Sir

  • @Bhatt4924
    @Bhatt4924 3 года назад +1

    amazing sir... keep making for us please

    • @AchieversDataEngineering
      @AchieversDataEngineering  3 года назад

      Thank you Gopal. It is motivating.Please subscribe my channel to receive alerts on any latest videos which I upload.

  • @iira1311
    @iira1311 2 года назад +1

    I have implemented this solution. Thanks for that. However, no data is reflecting when selecting from slicer. Could you pls assist

    • @AchieversDataEngineering
      @AchieversDataEngineering  2 года назад

      Hi @iira1311,
      Thank you! Please check how you have established the relationship between tables. I'm sure it will fix the issue. If not please let me know.

  • @zagaaru
    @zagaaru Год назад +1

    Thank you man

  • @Mahesh717
    @Mahesh717 11 месяцев назад +1

    instead of datesbetween can we datesinperiod !

  • @AslamAnsariVlogs
    @AslamAnsariVlogs 3 года назад +1

    Great keep it up

  • @cloehe
    @cloehe 2 года назад

    What if I wanna filter the data for next 30days, 60days, 90days? I just change the syntax from TODAY() -30 to TODAY()+30, but it doesn't work. Could you please help me?

    • @AchieversDataEngineering
      @AchieversDataEngineering  2 года назад

      Hi @Cloe, It is intresting! so you have data available for future dates?
      Please check the date table have future dates there too if not instead of using DAX "Calendarauto()" use Calendar(staerdate, enddate) and define the start date and end date there.
      Hope it will help.