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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Anonymous
Not applicable

Help needed urgently with 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
Super User
Super User

Hi @Anonymous

 

You could create a new calculated column concatenating Col E and Col F:

 

 

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

and then place the following measure in a Card visual:

 

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

 

View solution in original post

1 REPLY 1
AlB
Super User
Super User

Hi @Anonymous

 

You could create a new calculated column concatenating Col E and Col F:

 

 

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

and then place the following measure in a Card visual:

 

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

 

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.