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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Anonymous
Not applicable

Get avergae of a Text

Hi!

Is it possible tyo get an avergae of a text column, I am not looking to get the count average but the text itself.

For example if I have a column :

Col

 

A

A

C

B

A

C

B

A

 

I need to get an average of the Alphabets where each alphabet represents the revesion version, like in the above example should "A"

 

Thanks

3 REPLIES 3
Anonymous
Not applicable

If it's a revision version then convert these letters to their corresponding numbers, take an average of them and then round it up or down and again convert to the corresponding letter.

Best
D
Greg_Deckler
Community Champion
Community Champion

So explain why that is the average, becaues it is the most frequently occurring? Maybe MODE? https://community.powerbi.com/t5/Quick-Measures-Gallery/Mode-Single-Column/m-p/359150#M101

 

Take the UNICODE's of the characters, average that and return the INT of the average using UNICHAR?

 

Create a "lookup" table where you assign a value to each, 1, 2, 3 take the average of the numbers, translate back

 

I don't know, that is a weird request. 



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...
Anonymous
Not applicable

Hi,

Thanks, That is exactly waht I was doing but , I am unable tyo translate it back, I get the decimal number which I round it up , but I need to show it on a card as a KPI after translated back tyo the Albhabet.

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

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.