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
Anonymous
Not applicable

Filter blank values in dax table

Hello all.

I use a "bridge table" by joining some distinct values from two tables. But recently the update stoped working because of some blank values.

How can i filter these blank values in the following dax formula? Thanks in advance.

 

Bridge Table =
ADDCOLUMNS (
CROSSJOIN (
CROSSJOIN (
DISTINCT ( UNION ( VALUES ( 'Base Despesas'[Centro de Custo] ); VALUES ( GeneralJournalAccountEntrySNFEntity[Centro de Custo] ) ) );
DISTINCT (
UNION ( VALUES ( 'Base Despesas'[Conta contábil D365] ); VALUES ( GeneralJournalAccountEntrySNFEntity[Conta Contábil] ) )
)
);
DISTINCT ( UNION ( VALUES ( 'Base Despesas'[Mês] ); VALUES ( GeneralJournalAccountEntrySNFEntity[Mês] ) ) )
);
"UniqueKey"; [Centro de Custo] & "-"
& [Conta contábil D365]
& "-"
& [Mês]
)

 

1 ACCEPTED SOLUTION
az38
Community Champion
Community Champion

Hi @Anonymous 

maybe 

Bridge Table =
ADDCOLUMNS (

FILTER(
CROSSJOIN (
CROSSJOIN (
DISTINCT ( UNION ( VALUES ( 'Base Despesas'[Centro de Custo] ); VALUES ( GeneralJournalAccountEntrySNFEntity[Centro de Custo] ) ) );
DISTINCT (
UNION ( VALUES ( 'Base Despesas'[Conta contábil D365] ); VALUES ( GeneralJournalAccountEntrySNFEntity[Conta Contábil] ) )
)
);
DISTINCT ( UNION ( VALUES ( 'Base Despesas'[Mês] ); VALUES ( GeneralJournalAccountEntrySNFEntity[Mês] ) ) )
);
NOT(ISBLANK([Centro de Custo]))
)

;
"UniqueKey"; [Centro de Custo] & "-"
& [Conta contábil D365]
& "-"
& [Mês]
)

 


do not hesitate to give a kudo to useful posts and mark solutions as solution
LinkedIn

View solution in original post

3 REPLIES 3
az38
Community Champion
Community Champion

Hi @Anonymous 

maybe 

Bridge Table =
ADDCOLUMNS (

FILTER(
CROSSJOIN (
CROSSJOIN (
DISTINCT ( UNION ( VALUES ( 'Base Despesas'[Centro de Custo] ); VALUES ( GeneralJournalAccountEntrySNFEntity[Centro de Custo] ) ) );
DISTINCT (
UNION ( VALUES ( 'Base Despesas'[Conta contábil D365] ); VALUES ( GeneralJournalAccountEntrySNFEntity[Conta Contábil] ) )
)
);
DISTINCT ( UNION ( VALUES ( 'Base Despesas'[Mês] ); VALUES ( GeneralJournalAccountEntrySNFEntity[Mês] ) ) )
);
NOT(ISBLANK([Centro de Custo]))
)

;
"UniqueKey"; [Centro de Custo] & "-"
& [Conta contábil D365]
& "-"
& [Mês]
)

 


do not hesitate to give a kudo to useful posts and mark solutions as solution
LinkedIn
Anonymous
Not applicable

Thanks! This worked fine.

 

amitchandak
Super User
Super User

You can have a filter on top of  crossjoin and filter

like filter(crossjoin(A,B),isnot blank(A[a]))

 

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

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

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.

Top Solution Authors