Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM. Register now.

Reply
6DiegoDiego9
Helper I
Helper I

Be alerted if data is not as expected

Is it possible to be alerted during a Power Query, at runtime, if data is not as expected?  (e.g. if there are 200 rows instead than 100 in the source)

4 REPLIES 4
Vijay_A_Verma
Super User
Super User

Power Query is not designed to provide any sort of message. You can though populate a column or a cell/record with the error message if needed through the use of M statements. 

Oh, so what other tools do you use to check integrity of the data given to Power Query?
VBA?

If you can describe your data source (if this is Excel, then VBA can be an option) and scenarios (like row count) which you want to check, that would help me to think about a solution.

Sources are some CSV or XLSX files.
I'd like to receive an alert if any of some checks on data fails.


Examples of checks:
- number of rows is between 100 and 200, otherwise alert me
- numeric values in column "amount" are between 0 and 100000, otherwise alert me
- under the titles, valid rows ends at the first empty row. After this first empty row, there are only rows full of garbage notes to be ignored. If numbers are found in the "amount" column of this garbage zone, alert me  (suspected valid lines)

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Kudoed Authors