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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
sonuojha1
Helper IV
Helper IV

Power BI Concatenate and count the columns?

Greetings.

 

Is power bi has lots of limitations to do even small calculations?

 

I was trying to do simple calculation  with concatenating and counting. It couldn't recognize the 2nd column.

 

The same in Oracle BI we can easily manage without creating any pysical column to store this in table.

Oracle BI: ----> "count(distinct "Table1"."Login ID"||"Table1"."COMPANY")"

 

Could some one help me to solve it. How to achive this in Power BI without creating any additional column in table..

 

 

Regards,

Sonu

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@sonuojha1 , We do not have distinctCOUNTX , where you can have expression, so you need that.

You can try

countrows(Summarize(Table,Table[Login ID] , Table[COMPANY]) )

 

 

or You can create a new column and do a distinct count

 

new column = Table[Login ID] & Table[COMPANY]

 

distinctCOUNT([new column])

 

 

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

View solution in original post

3 REPLIES 3
SpiroswayGR
Resolver III
Resolver III

@sonuojha1 

Hey,

Did you try from transformation data to merge columns here ?

SpiroswayGR_0-1613637034273.png

 

As for distict count, you can use it when you will create your unique identifier.

https://docs.microsoft.com/en-us/dax/distinctcount-function-dax

 

 

 

Don't forget to give thumbs up 👍and accept this as a solution if it helped you.

amitchandak
Super User
Super User

@sonuojha1 , We do not have distinctCOUNTX , where you can have expression, so you need that.

You can try

countrows(Summarize(Table,Table[Login ID] , Table[COMPANY]) )

 

 

or You can create a new column and do a distinct count

 

new column = Table[Login ID] & Table[COMPANY]

 

distinctCOUNT([new column])

 

 

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

Thanks Amit for quick reply.

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

Check out the August 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

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

Top Solution Authors