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
Syndicate_Admin
Administrator
Administrator

COUNT in a table per row

Hello everyone!
I recently started a project where I have the following table loaded in DirectQuery mode:
data_operador1_0-1642079910409.png

Then I need to add a column in which I make the division of "SalesSale Count" by a DISTINCTCOUNT(Table[DATE]), but I think it cannot, so I have created my own column, called "Manual SalesSaleTh Count" using the COUNT(Table[SalesDate]) function the column created is as follows: (Option "Unsummarised" in the values of the table)

data_operador1_1-1642080467887.png

Can you think of any method or way to be able to make the division?
Thank you very much in advance.
1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@Syndicate_Admin , A new column = DISTINCTCOUNT(Table[DATE])

will give grand total

in measure DISTINCTCOUNT(Table[DATE]) will give row value

 

and calculate( DISTINCTCOUNT(Table[DATE]), allselected(Table )) , will give you grand total

 

what final calculation you need

View solution in original post

2 REPLIES 2
amitchandak
Super User
Super User

@Syndicate_Admin , A new column = DISTINCTCOUNT(Table[DATE])

will give grand total

in measure DISTINCTCOUNT(Table[DATE]) will give row value

 

and calculate( DISTINCTCOUNT(Table[DATE]), allselected(Table )) , will give you grand total

 

what final calculation you need

I need the value per row, so I tried the DISTINCTCOUNT(Table[DATE]) measure and it worked.

Thank you very much, @amitchandak !

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.