cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
New Member

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

Accepted Solutions
Highlighted
Super User II
Super User II

Re: Filter blank values in dax table

Hi @alexvor 

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
Highlighted
Super User IV
Super User IV

Re: Filter blank values in dax table

You can have a filter on top of  crossjoin and filter

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

 



Did I answer your question? Mark my post as a solution! Appreciate your Kudos!!
My Recent Blog -Week is not so Weak Connect on Linkedin

Proud to be a Super User!

Highlighted
Super User II
Super User II

Re: Filter blank values in dax table

Hi @alexvor 

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

Highlighted
New Member

Re: Filter blank values in dax table

Thanks! This worked fine.

 

Helpful resources

Announcements
Community Blog

Community Blog

Visit our Community Blog for articles, guides, and information created by fellow community members.

Using the Community

Using the Community

Need help with the Power BI Community? Our 'Using the Community' support articles are a great place to start.

Community Summit North America

Community Summit North America

Innovate, Collaborate, Grow. The top training and networking event across the globe for Microsoft Business Applications

Power Platform 2020 release wave 2 plan

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Top Solution Authors
Top Kudoed Authors