Microsoft Fabric Community Conference 2025, March 31 - April 2, Las Vegas, Nevada. Use code FABINSIDER for a $400 discount.
Register nowGet inspired! Check out the entries from the Power BI DataViz World Championships preliminary rounds and give kudos to your favorites. View the vizzies.
I have a scenario where I want to prevent a query from erroring out if a table is blank by stopping it from evaluation additional steps. Is there a way to do this?
Here's the background: a dataset is extracted from a system as one file type, but the query only works with files of a specific type, so I want to stop the query from running if the referenced file is NOT of the correct file type but leave the report blank instead of erroring out.
Solved! Go to Solution.
Multiple ways you can do this. If the file is one of many, but has an error, you can add a step to remove errors (right click on that column to see that option) before proceeding. If it is the only file, you can build a "try ... otherwise" in your query somewhere at the step level
step= try prevstep otherwise null (or some acceptable output)
Not sure what you'll need to do with your otherwise w/o seeing the rest of your query, but you can use it to substitute in dummy data that works, null, etc.
If this works for you, please mark it as solution. Kudos are appreciated too. Please let me know if not.
Regards,
Pat
To learn more about Power BI, follow me on Twitter or subscribe on YouTube.
DAX is for Analysis. Power Query is for Data Modeling
Proud to be a Super User!
MCSA: BI ReportingDAX is for Analysis. Power Query is for Data Modeling
Proud to be a Super User!
MCSA: BI ReportingMultiple ways you can do this. If the file is one of many, but has an error, you can add a step to remove errors (right click on that column to see that option) before proceeding. If it is the only file, you can build a "try ... otherwise" in your query somewhere at the step level
step= try prevstep otherwise null (or some acceptable output)
Not sure what you'll need to do with your otherwise w/o seeing the rest of your query, but you can use it to substitute in dummy data that works, null, etc.
If this works for you, please mark it as solution. Kudos are appreciated too. Please let me know if not.
Regards,
Pat
To learn more about Power BI, follow me on Twitter or subscribe on YouTube.
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code FABINSIDER for a $400 discount!
Check out the February 2025 Power BI update to learn about new features.
User | Count |
---|---|
31 | |
31 | |
20 | |
15 | |
12 |
User | Count |
---|---|
21 | |
20 | |
16 | |
10 | |
9 |