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

แชร์
ฝัง
  • เผยแพร่เมื่อ 15 ธ.ค. 2024

ความคิดเห็น • 54

  • @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 ปีที่แล้ว +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 10 หลายเดือนก่อน +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

  • @nathanmiller1337
    @nathanmiller1337 2 ปีที่แล้ว +1

    Nicely done! Easy to follow along!

  • @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.

  • @lucaspelicheck2457
    @lucaspelicheck2457 2 ปีที่แล้ว +1

    Thanks a lot, you save my day

  • @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.

  • @seang2012
    @seang2012 ปีที่แล้ว +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  ปีที่แล้ว

      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!

  • @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 4 หลายเดือนก่อน

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

  • @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.

  • @philipedesouzasantos1201
    @philipedesouzasantos1201 ปีที่แล้ว +1

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

  • @parisabrown
    @parisabrown ปีที่แล้ว +1

    This helped! Thank you!

  • @FITBOYGAMING
    @FITBOYGAMING 2 ปีที่แล้ว +1

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

  • @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  ปีที่แล้ว

      Hi @Andrew, Sorry for the delayed response. Please check out this video.
      th-cam.com/video/o1aBWfubjj8/w-d-xo.html
      Hope it will help. Please let me know if you need any more help on that.
      Thank you for watching!

  • @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.

  • @Bhatt4924
    @Bhatt4924 2 ปีที่แล้ว +1

    amazing sir... keep making for us please

    • @AchieversDataEngineering
      @AchieversDataEngineering  2 ปีที่แล้ว

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

  • @ashoks8935
    @ashoks8935 2 ปีที่แล้ว +1

    Very useful Sir

  • @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.

  • @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.

  • @Mahesh717
    @Mahesh717 10 หลายเดือนก่อน +1

    instead of datesbetween can we datesinperiod !

  • @zagaaru
    @zagaaru ปีที่แล้ว +1

    Thank you man

  • @AslamAnsariVlogs
    @AslamAnsariVlogs 2 ปีที่แล้ว +1

    Great keep it up

  • @cloehe
    @cloehe ปีที่แล้ว

    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  ปีที่แล้ว

      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.