Forum Discussion

6DiegoDiego9's avatar
6DiegoDiego9
Icon for Helper I rankHelper I
4 years ago

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

  • Vijay_A_Verma's avatar
    Vijay_A_Verma
    Icon for Most Valuable Professional rankMost Valuable Professional

    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. 

    • 6DiegoDiego9's avatar
      6DiegoDiego9
      Icon for Helper I rankHelper I

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

      • Vijay_A_Verma's avatar
        Vijay_A_Verma
        Icon for Most Valuable Professional rankMost Valuable Professional

        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.