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
datanau001
Helper III
Helper III

Count duplicated values

Dear all,

 

I would like to create a column that shows for each line of a ticket number the total times this ticket was handled by a support group.

 

For this, I have three columns:

 

  • “Touching’s per group” (total times a ticket was handled by the group);
  • “Audit Next Owner Group” (group that handled the ticket)
  • “SR_Number” (ticket number)

 

However, I’m managing to get this result ( tried to use countx, distinctcount).

 

Would be possible to have you support on this question?

 

Please, find attached a print with the above mentioned columns.

 

E.g: the result concerning to group “ZZZ_GTT- AMT – TSC - Content_Deleted” would be 2.

 

Thank you.

Marcelo

 

Counting of touchings.jpg

2 ACCEPTED SOLUTIONS
Stachu
Community Champion
Community Champion

wouldn't it be better to use measure instead of column? that way you could present the correct number in the visuals, with the column it would add 2+2 and show 4 in the Table/Matrix visuals (unless you don't aggregate)
How do you want to present that data in the end?



Did I answer your question? Mark my post as a solution!
Thank you for the kudos 🙂

View solution in original post

v-lili6-msft
Community Support
Community Support

HI, @datanau001

After my test, you may try this formula as below:

Touching’s per group = CALCULATE(COUNTA('Table'[Audit]),FILTER('Table','Table'[SR_NUMBER]=EARLIER('Table'[SR_NUMBER])&&'Table'[Audit]=EARLIER('Table'[Audit])))

If it is not your case, please share some data sample and expected output. Do mask sensitive data before uploading.

 

 

 

Best Regards,

Lin

Community Support Team _ Lin
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

4 REPLIES 4
v-lili6-msft
Community Support
Community Support

HI, @datanau001

After my test, you may try this formula as below:

Touching’s per group = CALCULATE(COUNTA('Table'[Audit]),FILTER('Table','Table'[SR_NUMBER]=EARLIER('Table'[SR_NUMBER])&&'Table'[Audit]=EARLIER('Table'[Audit])))

If it is not your case, please share some data sample and expected output. Do mask sensitive data before uploading.

 

 

 

Best Regards,

Lin

Community Support Team _ Lin
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Hello Lin,

Your formula resolved the issue.

 

Thank for the support.

Marcelo

themistoklis
Community Champion
Community Champion

@datanau001

 

First a new column and not measure using this formula:

Concatenated_Values = CONCATENATE(CONCATENATE('Table'[Audit Next Owner Group],'Table'[Touchings per group]),'Table'[SR_NUMBER])

Then create a measure to count the values from this new column:

COUNT VALUES = COUNT('Table'[Concatenated_Values])

 

Stachu
Community Champion
Community Champion

wouldn't it be better to use measure instead of column? that way you could present the correct number in the visuals, with the column it would add 2+2 and show 4 in the Table/Matrix visuals (unless you don't aggregate)
How do you want to present that data in the end?



Did I answer your question? Mark my post as a solution!
Thank you for the kudos 🙂

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.