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 dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
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.
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 |
---|---|
69 | |
68 | |
40 | |
29 | |
26 |
User | Count |
---|---|
86 | |
49 | |
45 | |
38 | |
37 |