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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends September 15. Request your voucher.

Reply
Anonymous
Not applicable

Count of multiple IDs and Columns

Hi all,

 

I am very new to PowerID and have been researching and testing several solutions in the board without success. 

In the below dataset, I would like to create a table showing how many users (user name) have 1 wireless number, 2 wireless numbers, 3 wireless numbers etc. for 3/31/2022. (My actual dataset would go up to 4 wireless numbers for some users, but my extract below would show only up to 2 wireless numbers for some users.) Please help, thank you!!


Dataset

Wireless NumberUser NameMarket Cycle End Date
202000096EID13/31/22
202000084EID103/31/22
202000036EID1003/31/22
202000024EID1013/31/22
202000100EID1013/31/22
202000060EID1023/31/22
202000027EID113/31/22
202000068EID133/31/22
202000130EID133/31/22
202000096EID12/28/22
202000084EID102/28/22
202000036EID1002/28/22
202000024EID1012/28/22
202000100EID1012/28/22
202000060EID1022/28/22
202000027EID112/28/22
202000068EID132/28/22
202000130EID132/28/22

 

 

What I would like to see

Number of User Names with Multiple Wireless NumbersNumber of Wireless Numbers
22
51
1 ACCEPTED SOLUTION
CNENFRNL
Community Champion
Community Champion

Simple enough. First create a dynamic table based on the max number of wireless access a customer can use,

CNENFRNL_0-1654969683877.png

CNENFRNL_1-1654969730876.png


Thanks to the great efforts by MS engineers to simplify syntax of DAX! Most beginners are SUCCESSFULLY MISLED to think that they could easily master DAX; but it turns out that the intricacy of the most frequently used RANKX() is still way beyond their comprehension!

DAX is simple, but NOT EASY!

View solution in original post

3 REPLIES 3
CNENFRNL
Community Champion
Community Champion

Simple enough. First create a dynamic table based on the max number of wireless access a customer can use,

CNENFRNL_0-1654969683877.png

CNENFRNL_1-1654969730876.png


Thanks to the great efforts by MS engineers to simplify syntax of DAX! Most beginners are SUCCESSFULLY MISLED to think that they could easily master DAX; but it turns out that the intricacy of the most frequently used RANKX() is still way beyond their comprehension!

DAX is simple, but NOT EASY!

Anonymous
Not applicable

Thank you so much!! It works!!

speedramps
Super User
Super User

Hi LucieM200

 

Please click here to download a solution

Please click here to download a example 

 

You may have to tinker with it depending on what you want to do with dates.

 

This is how it works ...

 

Users with occurence =
// get the occurnce for sequential list 1,2,3,4,5
VAR myoccurence = SELECTEDVALUE('Occurence list'[Occurence])
 
// create a summary table list of usrers and the total wireless per users
VAR mysummary =
SUMMARIZE('Dataset',
'Dataset'[User Name],
"Totalforuser",COUNT('Dataset'[Wireless Number])
)
 
// filter the sumary list based on the occurence. For example filer jsut occurence = 3
VAR myfiteredsummary =
FILTER(mysummary, [Totalforuser] = myoccurence)
RETURN
// count the number of users in the filtered summary table
COUNTROWS(myfiteredsummary)

 

I have helped you, now please help me by giving kudos.

Click the thumbs up and accept as solution button. 

One question per ticket please. If you need to extend your request then please raise a new ticket.

You will get a quicker response and each solver will get the kudos they deserve. Thank you ! 😎

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.