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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
akhaliq7
Post Prodigy
Post Prodigy

filter column of dim table if rows exists in id column in the fact table

I have a dimension table with too many rows, My fact table contains less rows as I have filtered it down.I can't apply the same filtering on the dim tables as it returns blanks when I display them in a visual, also another trick is doing merges in power query but I am getting performance issues with this trick. I was looking for an option using dax to see if I can return rows based on if it matches the id column in the related fact table. I am using a star schema so not sure if the related or relatedtable functions may work.

1 ACCEPTED SOLUTION
tamerj1
Super User
Super User

Hi @akhaliq7 

not sure if I fully understand you requirement. But you can try

Filter Measure = COUNTROWS ( fact_table[id] )

then place it in the filter pane and then select "Is Not Blank"

View solution in original post

2 REPLIES 2
akhaliq7
Post Prodigy
Post Prodigy

Thanks ill try this way i think it will work as someone recommended i do this in another question i posted on the power bi cimmunity for power query.

tamerj1
Super User
Super User

Hi @akhaliq7 

not sure if I fully understand you requirement. But you can try

Filter Measure = COUNTROWS ( fact_table[id] )

then place it in the filter pane and then select "Is Not Blank"

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 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.