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
PXJ99
Frequent Visitor

Count a column that has a ID that is a combination of text and numbers.

Hi all,

 

How to count a column that has a ID that is a combination of text and numbers.

 

For example: Table has IDs by month. I want to be able to count the distinct IDs by month and then plot the number count on a line chart. Could you please help. Thanks a lot.

 

Month    ID

Jul.          ST54

Jul.           DX98

Jul.           ST54

Aug.        DX98

Aug.        FR22

Aug.        DX98

Sep.         EY34

 

 

 

2 ACCEPTED SOLUTIONS
Anonymous
Not applicable

Hi @PXJ99 ,

 

Try the following measure:

Measure = CALCULATE(DISTINCTCOUNT('Table'[ID]),FILTER(ALLSELECTED('Table'),[Month]=MAX('Table'[Month])))

vstephenmsft_0-1677468182949.png

In the line chart:

vstephenmsft_1-1677468270484.png

                                                                                                                                                         

Best Regards,

Stephen Tao

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.           

View solution in original post

Thanks very much for your reply. Sorry for my late response. 

View solution in original post

2 REPLIES 2
Anonymous
Not applicable

Hi @PXJ99 ,

 

Try the following measure:

Measure = CALCULATE(DISTINCTCOUNT('Table'[ID]),FILTER(ALLSELECTED('Table'),[Month]=MAX('Table'[Month])))

vstephenmsft_0-1677468182949.png

In the line chart:

vstephenmsft_1-1677468270484.png

                                                                                                                                                         

Best Regards,

Stephen Tao

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.           

Thanks very much for your reply. Sorry for my late response. 

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
Top Kudoed Authors