The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredCompete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.
In short, Now I have a text column like //maybe more than 3 size pairs
"24x24 36x36 64x80"
Now I have to calculate the average width (24 + 36 +64) / 3
further, I need to calculate how many square in the above text. (2)
Notice: I use direct query mode now.
Hi @Anonymous
After testing, when you use the direct mode in Power query, many operations will be limited, it has the following limitation:
If the Power Query Editor query is overly complex, an error occurs. To fix the error, you must either delete the problematic step in Power Query Editor, or switch to import mode.you can refer to the following link.
it's better that you change the mode to import, the import mode support all operations in Power Query.
Best Regards!
Yolo Zhu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
I have try lots of methods. And I found I can use #"Split Column by Delimiter" = Table.TransformColumns(#"Renamed Columns", {{"clean_sizes", Splitter.SplitTextByDelimiter(" ", QuoteStyle.Csv), let itemType = (type any) in type {itemType}}}),
to make the split result save to a list. But When Translate this list to a average number, it always remind me the step can't work in direct query mode. It's so weird. How to do that.