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
KL008
Helper I
Helper I

Filtering Issue

I have an issue with the relationships in my pwoerbi dashboard. The situation is that I have a table called DimRiskCatalogue. This has two columns of interest [NAme] [ID}. It basically just lists roughly 20 categories of Risk that we have. Then I have another table that is called DimRisk. It has the following columns of interest: [Guid] and [RiskCatalogueID]. This gives the instances of all our specific risks that we have, and they are linked to DimRiskCatalogue via a many to one relationship between RiskCatalogueID and ID. 

Then I have a table called Control Relations, this has a few interesting columns/measures. [LinkedRisks], and the measure:
TotalKeyControls2 = 
CALCULATE(
    COUNTROWS(
        FILTER(
            ALLSELECTED('DimControl'),
            COUNTROWS(
                FILTER(
                    RELATEDTABLE('ControlRelations'),
                    'ControlRelations'[IsKeyControl] = TRUE()
                )
            ) > 0
        )
    )
)

It is linked via a many to one relationship from LinkedRisks to Guid (in the table DimRisk)

However, the situation is that currently when I put my measure into a card and try and filter it on [Name] from DimRiskCatalogue, it gives (Blank). Why is that
4 REPLIES 4
Anonymous
Not applicable

Hi @KL008 ,

 

 

 

1. That may be the crux of the matter.

The calculation here will be done on allselected('dimcontrol'), which will receive external filtering derived from all columns on 'dimcontrol', and you need to take into account that in some cases the empty set is returned.

vcgaomsft_1-1737697877049.png

ControlRelations:

vcgaomsft_5-1737698454970.png

DimControl:

vcgaomsft_6-1737698493164.png

Example data returns the case of the empty set:

vcgaomsft_4-1737698417380.png

If you don't need to consider external filtering from 'DimControl', consider replacing ALLSELECTED with ALL.

vcgaomsft_8-1737698739480.png

 

2.  I'm assuming that the crossfilter direction of 'DimControl' and 'DimRiskCatalogue' has been set to 'Both', which makes the DimRiskCatalogue' [Name] filter can be passed through 'DimControl' to 'ControlRelations'. 

vcgaomsft_7-1737698560066.png

The possibility of returning an empty set after stacking filters should likewise be taken into account.

vcgaomsft_9-1737698830395.png

Best Regards,
Gao

Community Support Team

 

If there is any post helps, then please consider Accept it as the solution  to help the other members find it more quickly.
If I misunderstand your needs or you still have problems on it, please feel free to let us know. Thanks a lot!

How to get your questions answered quickly --  How to provide sample data in the Power BI Forum

Thanks for the reply!
Two things, I need to filter externally, and secondly, there is no relationship bewteen DimControl and DimRiskCatalogue, you can see the relationships below

 

ToddChitt
Super User
Super User

Any chance you can share some sample data, and a screenshot of the tables in question, with the relationship?




Did I answer your question? If so, mark my post as a solution. Also consider helping someone else in the forums!

Proud to be a Super User!





Hey! Sure thing, as follows:
ControlRelations table:

ControlGuidIsKeyControlOrganizationGuidLinkedRisksCurrent Date
1TRUEAZ21-01-2025
1TRUEAY21-01-2025
1TRUEAX21-01-2025
2FALSEBW21-01-2025
3TRUECZ21-01-2025
3TRUECY21-01-2025
1FALSEAZ21-02-2025
1FALSEAX21-02-2025
1FALSEAY21-02-2025
2FALSEBW21-02-2025
3TRUECZ21-02-2025
3TRUECY21-02-2025


DimRisk Table

RiskGuidRiskCatalogueID
Z1
Y2
X3
W4


RiskCatalogue Table

IDName
1Risk1
2Risk2
3Risk3
4Risk4

Here are all the relations:

KL008_0-1737721806763.png

 

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