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.
Hello,
I am trying to get some statistics about my DB and my code seems to work perfect, but I got a real big DB and after trying to run this script on it, I ended up alway with Timeout failure, doesn't matter if I removed some unnecessary rows or not , I still getting the same error and the script is the following :
let Source = Sql.Database("DBTEST","DB_TST",[CreateNavigationProperties=false]), #"Filtered Rows" = Table.SelectRows(Source , each ([Kind] = "Table")), #"Added Custom" = Table.AddColumn( #"Filtered Rows", "Profile", each Table.Profile([Data])), #"Expanded Profile" = Table.ExpandTableColumn( #"Added Custom" , "Profile", {"Column", "Min", "Max", "Average", "StandardDeviation", "Count", "NullCount", "DistinctCount"}, {"Column", "Min", "Max", "Average", "StandardDeviation", "Count", "NullCount", "DistinctCount"}) in #"Expanded Profile", #"Entfernte Spalten" = Table.RemoveColumns(Tables_profile,{"Data"}), #"Gefilterte Zeilen" = Table.SelectRows(#"Entfernte Spalten", each true) in #"Gefilterte Zeilen"
Welcome to the club... Same with me unfortunately.
If you find bug-report to upvote, please send link and I will add my vote.
Imke Feldmann (The BIccountant)
If you liked my solution, please give it a thumbs up. And if I did answer your question, please mark this post as a solution. Thanks!
How to integrate M-code into your solution -- How to get your questions answered quickly -- How to provide sample data -- Check out more PBI- learning resources here -- Performance Tipps for M-queries
There are some suggestions to this same question on Stackoverflow.