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

Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now

Reply
Anonymous
Not applicable

Data model

Hi

Can you assist with my data model as the data tables are aggregates as opposed to having a primary key. What would my model look like to be able to see per item cost versus revenue targets for items/genders.

Table 1

Date

Item

Gender - size

Cost

1/1/2024

Hat

Male - 32

12.22

1/1/2024

Shoe

Female - 6

10.98

1/1/2024

Socks

Male – one size

3.44

2/1/2024

Hat

Female - 28

8.66

2/1/2024

Shoe

Female-4

4.66

 

Table 2

Date

Item

Gender

Revenue target

1/1/2024

Hat

Male

22.00

1/1/2024

Hat

Female

5.00

1/1/2024

Shoe

Male

12.00

1/1/2024

Shoe

Female

3.00

1/1/2024

Socks

Male

10.00

 

 

Table 3 - Date table

3 REPLIES 3
Anonymous
Not applicable

Thanks yeah i did try that but unfortunately it wont form the relationship between cost and revenue target as it said that the item column in table 1 contains duplicates and that's not allowed for a 1:many or many:1 relationship

 

Uzi2019
Super User
Super User

Hi @Anonymous 

You can connect your Date with both Table1 and Table 2
make sure your relationship from Date  to Table 1 is 1 ->many (Both direction)

and relationship from Date  to Table 2 is 1 ->many (Both direction)


put your slicer on top from Date table filed.

 

Or you can have bridge table where your unique values of gender/ item will be store . connect your both the tables ( 1&2) with bridge table and your issue will be resolved.

 

Note: You have to decide the flow of your filter data. It should be from cost table or revenue table. which is the primary or main table. based on that you can take unique value in bridge table and decide the flow like single direction and both direction.
Advice: Never create relationship with many to many direction avoid using that . it creates ambiguity. you can reolved this by using bridge table.

 

I hope above solution would help you to make your model working.

 

 

Don't forget to give thumbs up and accept this as a solution if it helped you!!!
Irwan
Super User
Super User

hello @Anonymous 

 

please check if this what you need.

 

1. Create relationship of your 'Date' table to 'Table 1' and 'Table 2'.

- 'Date' to 'Table 1' -> Date

- 'Table 1' to 'Table 2' -> Item

Irwan_2-1721041309575.png

 

2. Plot you Date and Item into slicer visual. While Cost and Revenue in card visual.

Irwan_3-1721041370758.png

 

Hope this will help you.

Thank you.

Helpful resources

Announcements
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.

February Power BI Update Carousel

Power BI Monthly Update - February 2026

Check out the February 2026 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.