Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
4 years ago
Solved

DAX For counting strings - Help with DAX

Hi Folks, I need small help with this one please 😞 

IF I have below table:

POP timeItemsFrequency 
4item1 
7item2 
21item3 
16item4 
8item5 
11item6 
10item7 
5item8 
7item9 
17item10 
5item11 
2item12 
5item13 
6item14 
3item15 
20item16 
5item17 
6item18 
12item19 
5item20 
7item21 
10item22 
3item23 
2item24 
 TOTAL # 


I want to find the count of items per POP Time 
for example in POP TIME 5 there are 5 count of items

5item8
5item11
5item13
5item17
5item20

and in POP Time 10 there is 2 Items 

10item7
10item22


After that I'll get :

POP timeCount Of Items
55
102
3and so on
11
…


The finel equation is frequency =  Count of Items per POP TIME divided by ( / ) Total# (Total count of Items for each POP Time. 

I need to find if there is a way in DAX to create such calculation. 

Hope it's clear and thanks to all suggestions:)

5 Replies