Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
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.
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
109 | |
96 | |
77 | |
66 | |
53 |
User | Count |
---|---|
144 | |
105 | |
102 | |
89 | |
63 |