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

July 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! Learn more

Reply
monikapowerbi12
New Member

We cannot convert the value to type Text

Hi!

I have duplicated values and I wanted to derive maximum FixVersionsID value per Jira key.

I came up with this code and I know it shows correct values underneath I constantly have "We cannot convert the value to type Text" error. 
FixVersionsID is a number, Jira key is the number. I don't know what else to do. 

Kindly advice

= Table.TransformColumnTypes(
Table.AddColumn(
#"Added Custom",
"MaxXPerY",
each Table.Max(
Table.Group(
#"Added Custom",
{[FixVersionsID]},
{{"MaxXPerY", each List.Max(([Jira key])), type number}}
)
)
),
{{"MaxXPerY", type number}}
)

 

1 REPLY 1
BA_Pete
Super User
Super User

Hi @monikapowerbi12 ,

 

Ok, you've got a few things going on here:

 

-1- This should be a text reference, {"FixVersionsID"}, not a field reference:

BA_Pete_0-1697522209436.png

 

-2- You have a double set of brackets here that should be a single set:

BA_Pete_1-1697522264959.png

 

-3- You're missing the second argument in Table.Max to tell PQ which column you want to identify the max of:

BA_Pete_2-1697522419408.png

 

I would recommend starting this again but doing each step separately, one by one, until you get the result you want.

If at that point you want to bundle all the steps into a single one, then at least you will have syntactically correct steps to combine.

 

Pete



Now accepting Kudos! If my post helped you, why not give it a thumbs-up?

Proud to be a Datanaut!




Helpful resources

Announcements
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

60 days of Data Days Carousel

Data Days 2026

Join Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Top Solution Authors