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
SAPpowerbi
Helper II
Helper II

Duplicate values count column

Hi Team ,

 

I need duplicate values count in calculated column using Name and business line Column .

please find below Example Input -

In below table - name is DA and busness line is A , B , C so  i want dax calulated column based on this two column .

only .

Name MarketdateBusiness lineValue
DAUK18-9-22A10
DAUK B20
DAUK19-9-22C30
XYZSingapore25-9-22A40
ADDubai25-9-22B50
ACF 27-9-22B10
OMIndia25-9-22A10
OMIndia30-9-22B10

 

Expected output -

In belw table calculated column is my output -

Explanation - Name - "DA" showing 3 time under the business line  A, B, C ,so count is 3 .

Same for XYZ is showing buiness line A so my count is 1 .

 

Kindly help me to wirite a Calulated column dax , so i am find multiple buiness line aginst Name and singale busine line .

Name MarketdateBusiness lineValue Caluclated column
DAUK18-9-22A10 3
DAUK B20 3
DAUK19-9-22C30 3
XYZSingapore25-9-22A40 1
ADDubai25-9-22B50 1
ACF 27-9-22B10 1
OMIndia25-9-22A10 2
OMIndia30-9-22B10 2

 

 

Thank you .

1 ACCEPTED SOLUTION
johnt75
Super User
Super User

Try

Num rows =
CALCULATE ( COUNTROWS ( 'Table' ), ALLEXCEPT ( 'Table', 'Table'[Name] ) )

View solution in original post

1 REPLY 1
johnt75
Super User
Super User

Try

Num rows =
CALCULATE ( COUNTROWS ( 'Table' ), ALLEXCEPT ( 'Table', 'Table'[Name] ) )

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.