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

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes! Register now.

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
September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 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