Forum Discussion
common date for 2 tables
- 2 years ago
Hi Anonymous - Create one common date table as below and establish relationships between your DateTime table and the timestamp columns in DP1 and DP3.
DateTimeTable =ADDCOLUMNS(GENERATE(CALENDAR(DATE(2023, 1, 1), DATE(2024, 12, 31)),VAR BaseDate = [Date]RETURNADDCOLUMNS(GENERATESERIES(0, 23, 1),"DateTime", BaseDate + TIME([Value], 0, 0))),"Hour", HOUR([DateTime]),"Minute", MINUTE([DateTime]))Add a slicer visual and drag the Date column from the DateTimeTable to it.
Set the slicer to the date format. you'll be able to use a single date slicer and a single time slicer to filter data points in both the DP1 and DP3 tables, providing a unified time-based filtering in power bi reports.Did I answer your question? Mark my post as a solution! This will help others on the forum!
Appreciate your Kudos!!
Hi Anonymous - Create one common date table as below and establish relationships between your DateTime table and the timestamp columns in DP1 and DP3.
Add a slicer visual and drag the Date column from the DateTimeTable to it.
Set the slicer to the date format. you'll be able to use a single date slicer and a single time slicer to filter data points in both the DP1 and DP3 tables, providing a unified time-based filtering in power bi reports.
Did I answer your question? Mark my post as a solution! This will help others on the forum!
Appreciate your Kudos!!
this works great rajendraongole1 thank you! i adjusted some extra stuff within it and added a 15min time interval as well.