cancel
Showing results for 
Search instead for 
Did you mean: 

Fabric is Generally Available. Browse Fabric Presentations. Work towards your Fabric certification with the Cloud Skills Challenge.

Reply
HerdedByDorpers
Regular Visitor

Slicer not functioning for directly related fact table

Hi All

 

Thank you for your attention to this question, I appreciate your time. I am new to PowerBI.

 

Overall Context: I have a data table which holds the IDs of various 'WBS' codes, each of which basically refers to a funded project.I have multiple tables which refer to the WBS-Table in a Star Schema (I think!).

 

The issue: I am seeing strange behaviour for my Budgets table.

 

Specific Context: Budgets also has the WBS field and is linked to the WBS Table (1:Many | WBS-Table:Budgets)

 

The behaviour: When I have a slicer on a field in the WBS-Table such as 'Area', it is not slicing the Budgets data, though it will slice other data sets fine (which have the same 1:Many relationship through the WBS field.

 

I have de-identified my data and removed some other helper tables.

https://drive.google.com/drive/folders/1BxWCSlM2LHsjkbmnf3WIIl-w8E4C52Ve?usp=sharing

 

Thank you again

HerdedByDorpers

 

 

1 ACCEPTED SOLUTION
HotChilli
Super User
Super User

The WBS table cannot filter the Budgets table because the relationship is inactive (that's hard to see in the model diagram due to the scale but the line is dotted).

Powerbi won't let the relationship be active because there would then be 2 paths between WBS and Actual By Month tables.

There are ways around this but it's really telling you that the model doesn't work.

---

I'm not sure what visuals and measures you want to explore in your data so I can't say "Here's the model you need" but there does seem to be a duplication of fields in different tables and I don't like the many to many relationship that's there.

--

Have a think about what you want in your visuals, simplify the model and go again is my advice. 

View solution in original post

2 REPLIES 2
HerdedByDorpers
Regular Visitor

Thank you @HotChilli 
I had to make a few changes to address the issues and make it fully operational.

  1. I removed the problematic many-many relationship to the date table.
  2. I removed other conflicting relationships and made sure that they were cascading 1:Many relationships.
  3. I reestablsihed the original 1:Many relationships and made them active.
  4. I set up a proper date table
  5. To link date tables to my monthly data I needed an extra field which had the first date of each month so that the link would be 1:Many.
HotChilli
Super User
Super User

The WBS table cannot filter the Budgets table because the relationship is inactive (that's hard to see in the model diagram due to the scale but the line is dotted).

Powerbi won't let the relationship be active because there would then be 2 paths between WBS and Actual By Month tables.

There are ways around this but it's really telling you that the model doesn't work.

---

I'm not sure what visuals and measures you want to explore in your data so I can't say "Here's the model you need" but there does seem to be a duplication of fields in different tables and I don't like the many to many relationship that's there.

--

Have a think about what you want in your visuals, simplify the model and go again is my advice. 

Helpful resources

Announcements
PBI November 2023 Update Carousel

Power BI Monthly Update - November 2023

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

Community News

Fabric Community News unified experience

Read the latest Fabric Community announcements, including updates on Power BI, Synapse, Data Factory and Data Activator.

Power BI Fabric Summit Carousel

The largest Power BI and Fabric virtual conference

130+ sessions, 130+ speakers, Product managers, MVPs, and experts. All about Power BI and Fabric. Attend online or watch the recordings.

Top Solution Authors
Top Kudoed Authors