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

Distinct Count of Two Columns plus not Blank using DAX

Hello Everyone,

 

I need urget help with Distinct count based on two column and also ignoring blank in the data with DAX in power BI

 

So i need column E and Column F distinct count and ignoring blank. So currently there is 37 data total and after distinct count of two column and ignoring blanck there the total count should be 31.

 

I have uploaded excel file with dummy data at below link.

 

https://drive.google.com/open?id=109V7P00IfkABYcCS6DslzK0eY58EPzVF

 

Urgent help would be highly appreciated. 

 

Thanks

1 ACCEPTED SOLUTION
AlB
Community Champion
Community Champion

Hi @Anonymous

 

A simple way would be to create a calculated column in your table concatenating Col E and Col F like this:

 

Table1[Column G] = Table1[Column E] & Table1[Column F]

and then place 'Column G' in a Card visual, select to show the distinctcount on the fields pane and use a filter to get rid of the blanks.

Otherwise you can create a measure like this and place it in a Card visual:

 

Measure=CALCULATE(DISTINCTCOUNT(Table1[Column G]),
                                Table1[Column G] <> BLANK()
                 ) 

 

View solution in original post

1 REPLY 1
AlB
Community Champion
Community Champion

Hi @Anonymous

 

A simple way would be to create a calculated column in your table concatenating Col E and Col F like this:

 

Table1[Column G] = Table1[Column E] & Table1[Column F]

and then place 'Column G' in a Card visual, select to show the distinctcount on the fields pane and use a filter to get rid of the blanks.

Otherwise you can create a measure like this and place it in a Card visual:

 

Measure=CALCULATE(DISTINCTCOUNT(Table1[Column G]),
                                Table1[Column G] <> BLANK()
                 ) 

 

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
Top Kudoed Authors