Forum Discussion

villasenorbritt's avatar
villasenorbritt
Resolver I
4 years ago
Solved

Date

This is what I started with:

I verified through SQL that these are the correct numbers that I need. I wanted to take off the time, so I transformed the data and took the time out. The problem is that when I do this, it messes up my numbers. 

Does anyone know what I could be doing wrong? Is it a relationship issue possibly? Thanks in advance for any help you may be able to provide. 

  • SergioSilvaPT's avatar
    SergioSilvaPT
    4 years ago

    Yes, it's recommended to use a calendar table for that and you should start with a basic one and grow with the needs. Keeping the model cleaner is always important!

     

    If you allow me i can also recommend to use the tool Bravo from SQLBI to create the date table. It's simple and it allows some customization to start.

     

    Bravo for Power BI by SQLBI

     

    If you want you can also use a calendar created in Power Query, there are some good example in the web.

     

    Tell me if you need any more help!

     

    Regards,

    Sérgio Silva 

     
    If this post helps, then please consider Accept it as the solution to help the others find it more quickly.

11 Replies

  • Hi villasenorbritt ,

     

    Can you show the transformations that you did?

    Do you have more than one value for each day?

    Are you using a Calendar Table connected to that table? 

    • villasenorbritt's avatar
      villasenorbritt
      Resolver I

      I copied the colum and hit the "Date only" option. There are many values for each day. I am currently working on getting a Calender Table in there so that might be the issue. I'm just not sure how to decide which calendar format to choose and if it needs to be aligned with my data source or if I can just stick a generic one in there. Thanks for helping me out. 

      • SergioSilvaPT's avatar
        SergioSilvaPT
        Resolver V

        Yes, it's recommended to use a calendar table for that and you should start with a basic one and grow with the needs. Keeping the model cleaner is always important!

         

        If you allow me i can also recommend to use the tool Bravo from SQLBI to create the date table. It's simple and it allows some customization to start.

         

        Bravo for Power BI by SQLBI

         

        If you want you can also use a calendar created in Power Query, there are some good example in the web.

         

        Tell me if you need any more help!

         

        Regards,

        Sérgio Silva 

         
        If this post helps, then please consider Accept it as the solution to help the others find it more quickly.