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
Solved! Go to Solution.
Hi @floralau
Download example PBIX file with the following code
TOPN returns a table which is why you are getting the error about 'multiple columns'. I guess you are trying to create a measure, but a measure must be a single value, it can't hold a table.
To count the number of different strings use this measure
Number of Diff Strings = DISTINCTCOUNT('Successful Rate'[Channel])
Regards
Phil
Proud to be a Super User!
Hi @floralau
Download example PBIX file with the following code
TOPN returns a table which is why you are getting the error about 'multiple columns'. I guess you are trying to create a measure, but a measure must be a single value, it can't hold a table.
To count the number of different strings use this measure
Number of Diff Strings = DISTINCTCOUNT('Successful Rate'[Channel])
Regards
Phil
Proud to be a Super User!
Thanks so much for your help!
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!