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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
drogo96
Frequent Visitor

how to count of the count

I have a matrix with phone numbers and count of the phone numbers. Now I need to display the count of all numbers which has count of 100,99 etc .Like there may be 150 numbers with count 100. or 98 numbers with count 99 etc Screenshot (84).png 

3 REPLIES 3
drogo96
Frequent Visitor

i tried but first step is not working it gives me "The expression specified in the query is not a valid table expression." error

@drogo96 Hii

I think u are doing sth wrong. I checked and it worked. Share your pbix file.

MohammadLoran25
Solution Sage
Solution Sage

Hi @drogo96 ,

 

1-Create below CALCULATED COLUMN in your Table (Calculated column, Not Measure)

 

PhonNoCount =
CALCULATE (
    CALCULATE (
        COUNTROWS ( PhoneNumberTable ),
        FILTER (
            PhoneNumberTable,
            PhoneNumberTable[msisdn] = SELECTEDVALUE ( PhoneNumberTable[msisdn] )
        )
    )
)

 

 

2-Create the measure:

 

FinalMeasure =
CALCULATE (
    COUNTROWS ( VALUES ( PhoneNumberTable[msisdn] ) ),
    PhoneNumberTable[PhonNoCount] = SELECTEDVALUE ( PhoneNumberTable[PhonNoCount] )
)

 

 

3-Put the calculated column "PhoneNoCount" and "FinalMeasure" in a Table visual and get what you need.

 

It helped? Mark it as an accepted solution.
Regards,
Loran

 

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 2025 Power BI update to learn about new features.

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors