Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateJoin us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.
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}}
)
Hi @monikapowerbi12 ,
Ok, you've got a few things going on here:
-1- This should be a text reference, {"FixVersionsID"}, not a field reference:
-2- You have a double set of brackets here that should be a single set:
-3- You're missing the second argument in Table.Max to tell PQ which column you want to identify the max of:
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
Proud to be a Datanaut!
Check out the July 2025 Power BI update to learn about new features.
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
User | Count |
---|---|
10 | |
8 | |
6 | |
6 | |
6 |