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.
I tried to trap like below, but not working. Run time error still produced. Any help would be appreciated. Thank you.
Source = Try Folder.Files("C:\nodirectory"),
output = if Source[HasError] then "Error" else "Good"
Solved! Go to Solution.
@bidev,
Please use the following code .
let FolderPath = "C:\nodirectory", Test = try List.Count(Folder.Files(FolderPath)[Content]), Source = if Test[HasError] then "Cannot find Data Source" else Folder.Files(FolderPath) in Source
Regards,
Lydia
@bidev,
Please use the following code .
let FolderPath = "C:\nodirectory", Test = try List.Count(Folder.Files(FolderPath)[Content]), Source = if Test[HasError] then "Cannot find Data Source" else Folder.Files(FolderPath) in Source
Regards,
Lydia
Lydia,
Thank you very much for the solution. It works perfectly!
User | Count |
---|---|
77 | |
74 | |
42 | |
32 | |
28 |
User | Count |
---|---|
100 | |
93 | |
52 | |
50 | |
48 |