Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Next up in the FabCon + SQLCon recap series: The roadmap for Microsoft SQL and Maximizing Developer experiences in Fabric. All sessions are available on-demand after the live show. Register now

Reply
Anonymous
Not applicable

common date for 2 tables

hey everyone. i have in a power bi report 2 tables, 1 called DP1, the other DP3. both tables have a timestamp, and i want to be able to use 1 date slicer and 1 time slicer for points in both of these tables, i tried making a date table using calendarauto(), but it doesn't take in consideration the time (hour/minutes), and i need to use the time within my visualisation. is there a way around to be able to use time for both?
DP1DP1DP2DP2date table using  calendarauto()date table using calendarauto()

1 ACCEPTED SOLUTION
rajendraongole1
Super User
Super User

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]
        RETURN
        ADDCOLUMNS(
            GENERATESERIES(0, 23, 1),
            "DateTime", BaseDate + TIME([Value], 0, 0)
        )
    ),
    "Hour", HOUR([DateTime]),
    "Minute", MINUTE([DateTime])
)
 
rajendraongole1_0-1717931543315.png

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!!





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!





View solution in original post

2 REPLIES 2
rajendraongole1
Super User
Super User

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]
        RETURN
        ADDCOLUMNS(
            GENERATESERIES(0, 23, 1),
            "DateTime", BaseDate + TIME([Value], 0, 0)
        )
    ),
    "Hour", HOUR([DateTime]),
    "Minute", MINUTE([DateTime])
)
 
rajendraongole1_0-1717931543315.png

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!!





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!





Anonymous
Not applicable

this works great @rajendraongole1  thank you! i adjusted some extra stuff within it and added a 15min time interval as well.

Helpful resources

Announcements
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

Check out the March 2026 Power BI update to learn about new features.