Forum Discussion
Appending a Column with Yesterdays date
Hi rocky09,
Do you have date columns in the tables you are collecting from Oracle?
Eg, do you collect Sales data where there is a column that carries the datetime of the transaction?
If any of your tables have a Datetime column you can create measures in Power BI to show this over time as well as make comparisons.
If you aren't getting date info in your data then it makes it a little hard.
AnonymousThank you for your suggestion.
Phil_SeamarkYes, the table has transaction date. Can you guide me, how can I use measures.?
- Phil_Seamark9 years ago
Microsoft Employee
When you bring that data in, convert the column to be using just the DATE datatype. Then connect that column to a separate Date Table where you will have just 1 row per date. This will be the table that drives your "Time Intelligence". Essectially this will unlock the functions like SAMEPERIODLASTYEAR, PARALLELPERIOD etc to build the measures you will likely need.
- rocky099 years ago
Solution Sage
Then connect that column to a separate Date Table where you will have just 1 row per date.
Thank you. I am not getting it. Do I need to duplicate the Date Table with all the information from the Original Table. Sorry for my poor understanding.
- Phil_Seamark9 years ago
Microsoft Employee
Hi rocky09,
The separate date table can have just one column as a bare minimum. But you can add columns to bucket dates into Months, Weeks, or Quarters etc if you want. The main thing is to have a Date/Calendar table that has just 1 row per date (and no more).
You don't need to duplicate your date table with the information from your original table.
Sounds like you are making good progress.