cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
united2win Regular Visitor
Regular Visitor

Add Column with COUNTROWS DAX Formula

Hi,

 

I have the following data set in table - Sales and Bookings:

 

Account + Product

00001234-Additional EU Returns

00001234-Additional EU Returns

00001234-Additional EU Returns

00001235-Additional VAT

00001235-Additional VAT

 

I want to add a column to calculate # of times that text.value appears on each row. The desired outcome would be:

Account + Product                                     Count of Account + Product

00001234-Additional EU Returns                                  3

00001234-Additional EU Returns                                  3

00001234-Additional EU Returns                                  3

00001235-Additional VAT                                             2

00001235-Additional VAT                                             2

 

From there, I will extend the use of those values for various calculations. Does anyone know the DAX Formula that I need to use in order to proceed?

 

Thank you. 

 

Rookie Power BI User.

 

1 ACCEPTED SOLUTION

Accepted Solutions
ChrisMendoza Senior Member
Senior Member

Re: Add Column with COUNTROWS DAX Formula

@united2win -

Column = 
CALCULATE(
    COUNTROWS(TableName),
    ALLEXCEPT(TableName,TableName[Account + Product])
)

View solution in original post

1 REPLY 1
ChrisMendoza Senior Member
Senior Member

Re: Add Column with COUNTROWS DAX Formula

@united2win -

Column = 
CALCULATE(
    COUNTROWS(TableName),
    ALLEXCEPT(TableName,TableName[Account + Product])
)

View solution in original post

Helpful resources

Announcements
New Topics Started Badges Coming

New Topics Started Badges Coming

We're releasing new versions of the badge that everyone's talking about. ;) Check your inbox for notifications.

MBAS 2020

Save the new date (and location)!

Our business applications community is growing—so we needed a different venue, resulting in a new date and location. See you there!

Difinity Conference

Difinity Conference

The largest Power BI, Power Platform, and Data conference in New Zealand

Top Solution Authors
Top Kudoed Authors (Last 30 Days)