Forum Discussion

Aklys's avatar
Aklys
Icon for Helper I rankHelper I
2 years ago
Solved

when using #sections powerbi gives empty table

Too long a story to state why I'm using #sections but there is a need due to complexity in data sources being utilised. So any queries about why it is needed can be left at the door.   The question...
  • Anonymous's avatar
    Anonymous
    2 years ago

    Hi Aklys 

     

    Here is the description of the #sections:

    #section only works in the compile environment, and when you leave Power Query, it means that it is out of the running state, so it returns a null value.

    M Language Sections - PowerQuery M | Microsoft Learn

     

    Instead of relying on #sections, try to use named queries directly. This can bypass the issues caused by the different processing stages in Power BI.

     

    Best Regards

    Zhengdong Xu
    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.