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
ddtblar
Helper I
Helper I

Frequency of counts

hi guys,

Need your help. I am lost.

i have data just like this:

 

NO_ID
L4147RG
L1211PR
M5526PA
L6737QC
S4968KN
L4147RG
S4968KN
S4968KN
M5526PA
L4147RG
L4147RG

 

 

So, basically, i am trying to count  NO_ID in the table based on group of frequency (1; 2; 3 - 5; 6-8).

Example, when  L4147RG counted 4 times, it will go to "3-5 times" category,

When L1211PR counted 1 time, it will go to "1 times" category,

The total will sum how many no_id that goes to each category.

 

so the result that i want is just like this:

frequencytotal no_id
1 times                          2
2 times                          1
 3-5 times                          2
 6-8 times0
Total                       10

 

 

Any hints? 

any help would be great.

 

thanks

(sorry for the bad english)

1 ACCEPTED SOLUTION
BKirsch12
Resolver II
Resolver II

I'd create a group by on NO_ID, the aggregate on count. Then create a conditional column on the number to put it into your frequency groups.

 

After that I would then group on your freqency and run a count on the frequency.

 

.pbix file link: https://drive.google.com/open?id=1cET8xvNLniomtOtaC8T0GAQkkeLwF0cv

 

 

 

View solution in original post

1 REPLY 1
BKirsch12
Resolver II
Resolver II

I'd create a group by on NO_ID, the aggregate on count. Then create a conditional column on the number to put it into your frequency groups.

 

After that I would then group on your freqency and run a count on the frequency.

 

.pbix file link: https://drive.google.com/open?id=1cET8xvNLniomtOtaC8T0GAQkkeLwF0cv

 

 

 

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.