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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
mkpbi
Frequent Visitor

Unexpected Behavior Between Two Related Tables.

I have two directly connected tables in Power BI. The relationship between two tables is active and one-to-many from the dimension table to the fact table.  Visuals only show values from the dimension table if only one value is selected from the dimension table. If more than one value is selected from the dimension table they don't show any values from the dimension table. 148.png148_150.png150.png

1 ACCEPTED SOLUTION
Jaywant-Thorat
Resolver I
Resolver I

This usually happens because:

You're only using fields from the Dimension table in the visual (e.g., Name, Category), without any aggregation from the Fact table.

Power BI visuals respect filter context, and if no data from the fact table corresponds to multiple selected dimension values, the visual will appear blank.

Most often, it’s due to the visual relying on the relationship direction, which doesn’t propagate filters both ways

Solution:

Option 1: Include a Field from the Fact Table in the Visual
Option 2: Check for Bi-Directional Filter (if Required)
Option 3: Use TREATAS in a Measure (Advanced)

Note:

 

This is not a bug but expected behavior based on how relationships and filters work.

Ensure your visuals include aggregated data from the fact table, or use DAX to handle filtering intentionally.

Avoid relying solely on dimension values without any context from the fact table.

 

View solution in original post

5 REPLIES 5
DataNinja777
Super User
Super User

Hi @mkpbi ,

 

The issue you're experiencing arises from how Power BI handles filter context between two related tables when multiple selections are made. In your model, you have a one-to-many relationship from the dimension table (Dim_Key) to the fact table (Fact_Key). When a single value like 148 or 150 is selected, Power BI can easily trace the relationship and return matching records from both tables. However, when multiple values are selected (like 148 and 150), Power BI sometimes cannot resolve the matching records in a visual that includes fields from both the dimension and fact tables. This leads to a blank or incomplete display, particularly for the dimension table values.

To handle this behavior and make the visual show the related dimension values correctly even with multiple selections, you can create a custom measure instead of using fields directly from both tables. For example:

Matched Fact Key = 
IF (
    COUNTROWS (
        RELATEDTABLE('FactTable')
    ) > 0,
    SELECTEDVALUE('FactTable'[Fact_Key]),
    BLANK()
)

This measure checks whether there is a related fact record for each dimension value and only returns the Fact_Key if the relationship exists. You can then place Dim_Key from the dimension table and this new measure in your visual. This approach avoids ambiguity and ensures that multiple selections behave consistently.

 

Best regards,

Hi @DataNinja777 ,

 

Thank you for the siggestion. I tried the measure as suggested but the behavior is the same. It still shows no values when I selected more than one value from the dimension table.matched_fact_key.png

Jaywant-Thorat
Resolver I
Resolver I

This usually happens because:

You're only using fields from the Dimension table in the visual (e.g., Name, Category), without any aggregation from the Fact table.

Power BI visuals respect filter context, and if no data from the fact table corresponds to multiple selected dimension values, the visual will appear blank.

Most often, it’s due to the visual relying on the relationship direction, which doesn’t propagate filters both ways

Solution:

Option 1: Include a Field from the Fact Table in the Visual
Option 2: Check for Bi-Directional Filter (if Required)
Option 3: Use TREATAS in a Measure (Advanced)

Note:

 

This is not a bug but expected behavior based on how relationships and filters work.

Ensure your visuals include aggregated data from the fact table, or use DAX to handle filtering intentionally.

Avoid relying solely on dimension values without any context from the fact table.

 

mkpbi
Frequent Visitor

Hi @rosha_rosha,

 

The realtioship is one-to-many with a single filter direction. This is evident by looking at the screenshots when only one values is selected form the filter pane. I don't use any measure at this point, and there is no additional filter or slicer applied to the visuals.

 

Thanks

 

rosha_rosha
Resolver II
Resolver II

Hi mkpbi,

To fix the issue of visuals not showing data when multiple values are selected from the dimension table:

 

  1. Check the Relationship: Ensure the relationship is one-to-many with a single filter direction (from dimension to fact).

  2. Review Measures: Ensure your measures handle multiple dimension values properly. Use ALLSELECTED() or VALUES() in DAX to manage the filter context.

  3. Verify Data: Check that every selected dimension value has corresponding data in the fact table.

  4. Check Filters and Slicers: Make sure there are no conflicting filters or slicers hiding data.

  5. Enable "Show Items with No Data": In matrix visuals, enable this option to show dimension items even if they have no data.

  6. Use "ALL" or "REMOVEFILTERS" in DAX: Add REMOVEFILTERS() to your measures if you need to control filter context.

 If the solution works for you,  accept it as the solution. Let me know if you need any further help!

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

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.

Top Solution Authors
Top Kudoed Authors