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

The FabCon + SQLCon recap series starts April 14th at 8am Pacific. If you’re tracking where AI is going inside Fabric, this first session is a can't miss. Register now

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
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

Check out the March 2026 Power BI update to learn about new features.