How to set default slicer value in Power BI

Sdílet
Vložit
  • čas přidán 31. 07. 2024
  • How to set latest month as default value in slicer
    How to set current month as default value in slicer
    #powerbi #data #dataanalytics #datavisualization #slicer

Komentáře • 25

  • @pracasrv
    @pracasrv Před 5 měsíci +1

    Super Helpful. I've looked at 10+ tutorials on this - but none of it addressed it like you did. Great Job! Appreciate it.

  • @Lixia123
    @Lixia123 Před rokem +1

    This is what I am looking for, thanks a lot !

    • @thebihub
      @thebihub  Před rokem

      Glad it helped you , Thanks!☺

  • @sridharm3571
    @sridharm3571 Před rokem +3

    Great, helpful!

  • @asgerlarsen2083
    @asgerlarsen2083 Před rokem +1

    Nice. Is there a way of keeping the name of the latest month instead of using "Latest Month" as the name?

    • @thebihub
      @thebihub  Před rokem

      Thanks, the same name is what making the slicer to keep on default, you can add a measure in the card (lookup value which I showed in the demo) as a note around the slicer if you want

  • @3danim8r1
    @3danim8r1 Před 10 měsíci +1

    Can we add this on the basis of Calendar table?

    • @thebihub
      @thebihub  Před 10 měsíci

      Yes, Simply check for Maximum month (date ) from calendar table and make it as latest month as shown in video

  • @PoojaYadav-jx9sl
    @PoojaYadav-jx9sl Před měsícem +1

    Suppose my data changes earlier I was having data till 2024 Jun and now I have data till 2023 dec then how it works , currently I am facing problem on this can someone help me

    • @thebihub
      @thebihub  Před měsícem

      Hi Pooja, the same solution given above will work, for the Max date month always it'll hold 'latest month'. In your case first time latest month would be jun 2024 now it'll be 2023 dec

    • @PoojaYadav-jx9sl
      @PoojaYadav-jx9sl Před měsícem

      I have a date table and a fact and they are connected to each in your case you are having only one table

    • @PoojaYadav-jx9sl
      @PoojaYadav-jx9sl Před měsícem

      Can you tell me what logic do I need to use

    • @PoojaYadav-jx9sl
      @PoojaYadav-jx9sl Před měsícem

      Date 2 =
      VAR _max_date =
      MAX ( 'Balance date'[Balance date] )
      VAR _last_three_month =
      EOMONTH ( _max_date, -1 ) + 1
      RETURN
      IF (
      'Balance date'[Balance date] >= _last_three_month,
      "current month",
      FORMAT ( 'Balance date'[Balance date], "yyyy mmm" )
      ) this is the dax that I have written

    • @PoojaYadav-jx9sl
      @PoojaYadav-jx9sl Před měsícem

      It is giving me correct results in the calculated column but not in the slicer

  • @lakshminarayana3168
    @lakshminarayana3168 Před rokem +1

    I want to keep the default selection for the last 3 months, how can I achieve this ,can you help me 🙏

    • @thebihub
      @thebihub  Před rokem

      Hi Lakshmi, to make top 3 months as Default selection add the calculated column,
      Top 3 months = IF(RANKX(ALL('TableName'[YYYYMM]),'TableName'[YYYYMM],,DESC)

    • @izabelapereira1679
      @izabelapereira1679 Před 7 měsíci +1

      @@thebihub Thanks for this one! It worked perfectly here.

    • @thebihub
      @thebihub  Před 7 měsíci

      @@izabelapereira1679 thanks!

  • @kalyank2638
    @kalyank2638 Před 6 měsíci

    Thanks but i. My reult mam seeing latest month and dec as well