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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
PBInonpro
Helper III
Helper III

Filtering Two Dimension Tables from a Calendar Table

I have two Dim tables. One for Budgets and the other for Transactions. 

 

Part of the budget is the work-related local travel budget and each organization has their own. Example would be a mechanic is sent from the East side of the city to the South and it cost $120 in fuel, etc. 

 

Each DIm Table has the organizations ID, and there is an organization lookup table with the ID and associated Org name. Each ID is unique but an Org can have multiple ID's. 

 

Org Lookup Table example:

OrgIDOrgName
11ASouthTeam
11BNorthTeam
12ANorthTeam
12BEastTeam
12CSouthTeam

 

The Budget table Example:

OrgIDBudgetTypeYear
11A5000Travel Repairs2023
12B1000Travel Fuel2023
12A1500Travel Repairs2023
11A1000Travel Fuel2023
12C4000Travel Repairs2022
12B500Travel Repairs2022

 

Transaction Example:

OrgIDSpentTypeYear
12A5.50Travel Fuel2023
12B20Travel Repairs2023

 

I took two approaches, first i built the relatinship between Org ID of the lookup table to each dim table to show the budget and cost, successfully and then I tried adding a RELATED column in each DIM table. 

 

The problem is this, when I can't add in a calendar table as there is already an active relatinship. Our fiscal year is from July 1 to June 30; right now we are in Fiscal Year 2023 and on July 1st we will be in Fiscal Year 2024. I am trying to build a slicer for the FY to filter both tables with no luck ... 

 

 

0 REPLIES 0

Helpful resources

Announcements
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.