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
ProCSIG
Regular Visitor

count the occurrences of measure

Hello - I am a beginner and am learning on my own and I really appreciate all the great knowlegde and support here.   I have a data table as shown below with partid and fundid.  I created a measure to count the number funds held by each partid. called CountFundsHeld (CountFundsHeld = COUNT(BalanceLoad[FundID])).  What I now need to count is the number of partid's for each number of funds (CountFundsHeld).  i.e.

#Funds#PartId's
10
21
30
42
53

etc...

My only limitation is that i want to do this without using a calcualted column. See sample data.   

 

PartIDFundIDValue
567903696265721795466.86
580067790265721151028.66
628312818265731110908.8
722186409265751009587.34
69311900426224837533.15
60149426425909760576.36
45627753026570709610.98
72149119226575640558.87
78473880926576617580.44
71757254726575611810.78
51295206925909571732.94
5982231757563530069.72
60366142526573524099.67
53231480426572520168.34
56275964426572503297.71
64902255026574483795.01
67286267726574474723.89
32237746526570473814.67
74523510026576408157.93
64717374625909407664.03
76440966026576402921.11
48988254326571399239.58
47171257826571389165.84
59872131926573388098.12
67564356026574371190.47
73061696126575355842.75
77800766726576347468.89
61271147125909338999.06
31041971726570314007.33
51407329826571312775.69
63670943726574304044.7
60096528026573298613.43
71236400726224298491.12
75999136526576296457.72
53136793225909287726.54
70438510826575284977.73
70253229026575281122.03
60260698226573275664.04
66946384526224270902.99
62518047326573264813.33
75090208526576263985.53
84222644126577260437.88
6387100507581244301.53
7246534897563243247.37
59862187826573225659.99
62025897025909215206.03
79776118526577211057.8
76440966026578203063.66
76440966026577202485.18
71126621426575201734.2
58294431926573200944.08
43348287626570198098.27
50694102326571193352.55
1 ACCEPTED SOLUTION
Ashish_Mathur
Super User
Super User

Hi,

You may download my PBI file from here.

Hope this helps.

Untitled.png


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

View solution in original post

3 REPLIES 3
Ashish_Mathur
Super User
Super User

Hi,

You may download my PBI file from here.

Hope this helps.

Untitled.png


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

Wow - that is exactly what I need.  Very elegant solution.  you rock!

You are welcome.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

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.