Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
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
Solved! Go to Solution.
Hi @PXJ99 ,
Try the following measure:
Measure = CALCULATE(DISTINCTCOUNT('Table'[ID]),FILTER(ALLSELECTED('Table'),[Month]=MAX('Table'[Month])))
In the line chart:
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.
Hi @PXJ99 ,
Try the following measure:
Measure = CALCULATE(DISTINCTCOUNT('Table'[ID]),FILTER(ALLSELECTED('Table'),[Month]=MAX('Table'[Month])))
In the line chart:
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.
Check out the November 2025 Power BI update to learn about new features.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!