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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
MathiasBI
Regular Visitor

Using a date column to filter two columns from different tables

Hi!

 

I'm managing a Power BI report where this company shows their budget versus actual numbers. 

There are three important columns; AccountNo, Budget and Actual.

Budget and Actual are from two different views, while AccountNo is the key connector between them. 

 

I need a separate date column which can filter these numbers in month and years. I haven't been able to create a column where I get the correct numbers in both columns. It's always either or.

1 REPLY 1
johnt75
Super User
Super User

Create a proper date table, marked as a date table, and link that to both budget and actual tables. Use columns from your date table in your visuals and it should filter everything correctly.

It would also be a good idea to create a separate dimension table for your accounts and link that to both budget and actual tables. It sounds like at the moment you have a many-to-many relationship between the two and that is rarely a good idea.

You can create a table based on the unique values using something like

Account Number =
DISTINCT (
    UNION (
        DISTINCT ( 'Budget'[Account Number] ),
        DISTINCT ( 'Actual'[Account Number] )
    )
)

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.