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
Anonymous
Not applicable

What would be the exact formula for this count function?

Hi,

 

I want to come up with a formula which aggregrates the number of creation times per person based on one day. 

 

helpmepls.PNG

 

whyquestions.PNG

 

The column index is just 1. The second image shows that the index variable has been summed up based on time and user. So, for 8/1/2018, Mr B has 5 different creation times. What DAX formula would you use to manually create the summed up values of the index without having to rely on summarization option in visualizations? We need to manually create this column since we want to be able to categorize users according to their summed up index numbers. I am guessing the formula would involve either the COUNT function or the SUMX function. 

 

P.S: We've found a way of creating a measure to do this but we need something of a permanent nature, specifically a formula for a column so that we can automate the whole process at the end of the day.

 

Thank you!

 

Best regards,

vvmob

 

1 ACCEPTED SOLUTION

@Anonymous 
 
create a calcualted column
countfunction = CALCULATE(SUM(Table1[Index]), ALLEXCEPT(Table1, Table1[User Name], Table1[CreationTimeUTC.1]))




If I took the time to answer your question and I came up with a solution, please mark my post as a solution and /or give kudos freely for the effort 🙂 Thank you!

Proud to be a Super User!




View solution in original post

5 REPLIES 5
richbenmintz
Solution Sage
Solution Sage

Hi @Anonymous 

I believe you are trying to create a summary table, try the following.

click in the model tab-> create table -> enter formula (please note table names will be different in your model)

 

Table = SUMMARIZE('Table1', Table1[User Name], Table1[CreationTimeUTC.1], "index count", sum(Table1[Index]))

Hope that helps



I hope this helps,
Richard

Did I answer your question? Mark my post as a solution! Kudos Appreciated!

Proud to be a Super User!


vanessafvg
Super User
Super User

@Anonymous  please provide the data in text format not an image




If I took the time to answer your question and I came up with a solution, please mark my post as a solution and /or give kudos freely for the effort 🙂 Thank you!

Proud to be a Super User!




Anonymous
Not applicable

Hi @vanessafvg,

 

Sure, here it is.

 

CreationTimeUTC.1User NameIndex
8/1/2018 0:00B1
8/1/2018 0:00B1
8/1/2018 0:00B1
8/1/2018 0:00B1
8/1/2018 0:00B1
11/26/2018 0:00D1
11/26/2018 0:00D1
11/26/2018 0:00D1
1/16/2019 0:00D1
1/16/2019 0:00D1
3/20/2019 0:00D1

@Anonymous 
 
create a calcualted column
countfunction = CALCULATE(SUM(Table1[Index]), ALLEXCEPT(Table1, Table1[User Name], Table1[CreationTimeUTC.1]))




If I took the time to answer your question and I came up with a solution, please mark my post as a solution and /or give kudos freely for the effort 🙂 Thank you!

Proud to be a Super User!




Anonymous
Not applicable

Thank you! This worked.

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.