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

Did you hear? There's a new SQL AI Developer certification (DP-800). Start preparing now and be one of the first to get certified. Register now

Reply
Anonymous
Not applicable

Removing Empty Row From Calculated Table

Dear Community, 

 

Hope this message finds you well and healthy!

 

I would like to have a dimension table based on 1 column in my fact table as shown below:

 

Capture.PNG

The deal is i know there are empty cells in that column, but i don't need them. 

My DAX formula seems to not work as well. 

Can you help me please to get rid of the empty values in this calculated table?

 

All due respect, 

 

Atanas

1 ACCEPTED SOLUTION
themistoklis
Community Champion
Community Champion

@Anonymous 

 

Please try any of the options below:

 

Option 1:
FILTER( SUMMARIZE('America', 'America'[Risk Code]), 'America'[Risk Code]<>BLANK() )

Option 2:
FILTER( DISTINCT('America'[Risk Code]), 'America'[Risk Code]<>BLANK() )

Option 3:
CALCULATETABLE( DISTINCT('America'[Risk Code]), 'America'[Risk Code]<>BLANK() )

Option 4:
Filter (SUMMARIZE ( ​America, America[Risk Code] ) , NOT ( ISBLANK ( [Risk Code] ) ) )

 

View solution in original post

4 REPLIES 4
themistoklis
Community Champion
Community Champion

@Anonymous 

 

Please try any of the options below:

 

Option 1:
FILTER( SUMMARIZE('America', 'America'[Risk Code]), 'America'[Risk Code]<>BLANK() )

Option 2:
FILTER( DISTINCT('America'[Risk Code]), 'America'[Risk Code]<>BLANK() )

Option 3:
CALCULATETABLE( DISTINCT('America'[Risk Code]), 'America'[Risk Code]<>BLANK() )

Option 4:
Filter (SUMMARIZE ( ​America, America[Risk Code] ) , NOT ( ISBLANK ( [Risk Code] ) ) )

 

Anonymous
Not applicable

@themistoklis 

 

Thank you! All of them worked!

 

I chose that one as i don't want to use iterators:

 

RiskcodeDim =
CALCULATETABLE(
DISTINCT(
America[Risk Code]
),
America[Risk Code]
<> BLANK()
)
 
God bless you! You and @AllisonKennedy 
 
Thank you both for your help!
 
Take care!
 
Atanas
AllisonKennedy
Community Champion
Community Champion

Your blank row is probably
=""
rather than being actually blank. You can try adding a FILTER( table, column <>"") as well to your DAX, though I would suggest creating your Dimension tables in Power Query.

Please @mention me in your reply if you want a response.

Copying DAX from this post? Click here for a hack to quickly replace it with your own table names

Has this post solved your problem? Please Accept as Solution so that others can find it quickly and to let the community know your problem has been solved.
If you found this post helpful, please give Kudos C

I work as a Microsoft trainer and consultant, specialising in Power BI and Power Query.
www.excelwithallison.com

Anonymous
Not applicable

@AllisonKennedy , 

 

Thank you very much for your swift reply, but when i added it i get the following table, which is kinda different:

 

Capture.PNG

Also, i agree the dimension tables must be created in Power Query, but i really like to try and do it with DAX for the sake of this task, 

 

Atanas

Helpful resources

Announcements
April Power BI Update Carousel

Power BI Monthly Update - April 2026

Check out the April 2026 Power BI update to learn about new features.

Fabric SQL PBI Data Days

Data Days 2026 coming soon!

Sign up to receive a private message when registration opens and key events begin.

New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.