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

Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!

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
April AMA free

Microsoft Fabric AMA Livestream

Join us Tuesday, April 09, 9:00 – 10:00 AM PST for a live, expert-led Q&A session on all things Microsoft Fabric!

March Fabric Community Update

Fabric Community Update - March 2024

Find out what's new and trending in the Fabric Community.