Power BI is turning 10, and we’re marking the occasion with a special community challenge. Use your creativity to tell a story, uncover trends, or highlight something unexpected.
Get startedJoin us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.
Hello.
I am using an invoked function to get my data. However if the table generated is empty, the next steps causes an error to my dashboard. I want to create a step where if this step results to an empty table, a new table with same column names and blank row values will be created to avoid errors.
Hi @judithyap19 ,
Based on the description, open the advanced editor and try to add the following formula.
let
Source = YourFunction(),
IsEmpty = Table.IsEmpty(Source),
Result = if IsEmpty then
Table.FromRecords({[name= null, number = null]})
else
Source
in
Result
Best Regards,
Wisdom Wu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @judithyap19 ,
Use a if statement with a Table.IsEmpty something similar to:
if Table.IsEmpty ( YOUR EXPRESSION) = true then ALTERNATIVE EXPRESSION else YOUR EXPRESSION
Regards
Miguel Félix
Proud to be a Super User!
Check out my blog: Power BI em PortuguêsThis is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
65 | |
60 | |
51 | |
36 | |
36 |
User | Count |
---|---|
81 | |
72 | |
58 | |
45 | |
44 |