Forum Discussion

2 Replies

  • Hello,

     

    You make a new table and ente the dax function calendarauto() and it will automatically gives you all the dates from your min data date till the max and you connect them together in the data modeling section and now you can use it to filter them.

     

    you can know more about calendarauto from this link https://learn.microsoft.com/en-us/dax/calendarauto-function-dax

     

    If I answered your question, please mark my post as solution so it would appeare to others, Appreciate your Kudo 👍

    Follow me on Linkedin

    • lancersc's avatar
      lancersc
      Icon for Helper I rankHelper I

      The problem is, when I inner join Table1 and Table2 the year and month will be irrelevant on Table 3

       

      For example

      Table1

      InvoiceYear     InvoiceMonth     BranchCode     ItemID

           2021                  2                    01673        2053249
           2022                  4                    01661        0300000

       

      Table2

      InvoiceYear     InvoiceMonth     BranchCode     ItemID

           2022                   2                    01673        2053249
           2022                   5                    01661       0300000
           2021                  10                   01673        2700000


      Table3 (Inner Join Branch Code and ItemID)

      BranchCode     ItemID

      01673        2053249
      01661       0300000


      When I filter Table1 and Table2(which is in a relationship in Month) for example Month 2, I want the table 3 to only show Month 2

      Example


      Table3 (Inner Join Branch Code and ItemID)

      BranchCode     ItemID

         01673          2053249