This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. We're covering it all. You won't want to miss it.
Learn moreLevel up your Power BI skills this month - build one visual each week and tell better stories with data! Get started
Hello
I have the following code but I got the Expression.Error: A cyclic reference was found during the evaluation. Thanks in advance for the help
= Table.AddColumn(#"Zephyr", "Custom", each if [a]="" then Text.Replace([Deal value SEK],",","") else [Deal value SEK])
The following table :
Solved! Go to Solution.
Your last line before in has to be following
#"Lägg till egen" = Table.AddColumn(#"Omdöpta kolumner1", "Custom", each if [a]="" then Text.Replace([#"Deal value#(lf)SEK"],",","") else [#"Deal value#(lf)SEK"])
On the current dataset, I am not able to replicate your issue. Can you post your complete Query here? While you are in the editor here, press </> and paste the code.
Here is it
let
Källa = Excel.Workbook(File.Contents("G:\UDI\Databaser\Powerbi\Zephyr.xlsx"), null, true),
Results_Sheet = Källa{[Item="Results",Kind="Sheet"]}[Data],
#"Sammanfogade kolumner" = Table.CombineColumns(Table.TransformColumnTypes(Results_Sheet, {{"Column10", type text}, {"Column11", type text}}, "sv-SE"),{"Column10", "Column11"},Combiner.CombineTextByDelimiter("", QuoteStyle.None),"Date"),
#"Upphöjda rubriker" = Table.PromoteHeaders(#"Sammanfogade kolumner", [PromoteAllScalars=true]),
#"Omdöpta kolumner" = Table.RenameColumns(#"Upphöjda rubriker",{{"Completed dateAssumed completion date", "Date"}}),
#"Infogat parsat datum" = Table.AddColumn(#"Omdöpta kolumner", "Parsa", each Date.From(DateTimeZone.From([Date])), type date),
#"Infogat år" = Table.AddColumn(#"Infogat parsat datum", "År", each Date.Year([Parsa]), Int64.Type),
#"Infogad månad" = Table.AddColumn(#"Infogat år", "Månad", each Date.Month([Parsa]), Int64.Type),
#"Infogat kvartal" = Table.AddColumn(#"Infogad månad", "Kvartal", each Date.QuarterOfYear([Parsa]), Int64.Type),
#"Ersatt värde" = Table.ReplaceValue(#"Infogat kvartal","n.a.","",Replacer.ReplaceValue,{"Deal value#(lf)SEK"}),
#"Dela upp kolumn efter avgränsare" = Table.SplitColumn(Table.TransformColumnTypes(#"Ersatt värde", {{"Deal value#(lf)SEK", type text}}, "sv-SE"), "Deal value#(lf)SEK", Splitter.SplitTextByDelimiter("*", QuoteStyle.Csv), {"Deal value#(lf)SEK.1", "Deal value#(lf)SEK.2"}),
#"Omdöpta kolumner1" = Table.RenameColumns(#"Dela upp kolumn efter avgränsare",{{"Deal value#(lf)SEK.2", "a"}, {"Deal value#(lf)SEK.1", "Deal value#(lf)SEK"}}),
#"Lägg till egen" = Table.AddColumn(#"Zephyr", "Custom", each if [a]="" then Text.Replace([Deal value SEK],",","") else [Deal value SEK])
in
#"Lägg till egen"
I think I will have to request you to share your Excel without confidential/sensitive data through Onedrive/any other file hosting provider.
Can't find anything there. Best is Onedrive or Google drive for share.
Your last line before in has to be following
#"Lägg till egen" = Table.AddColumn(#"Omdöpta kolumner1", "Custom", each if [a]="" then Text.Replace([#"Deal value#(lf)SEK"],",","") else [#"Deal value#(lf)SEK"])
Big thanks.
I got also what I had wrong
Check out the April 2026 Power BI update to learn about new features.
Sign up to receive a private message when registration opens and key events begin.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.