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

Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!

Reply
StuBee
Helper I
Helper I

Row headers are not always in the first row

Hello,

 

Been using this forum for a while and never yet needed to askd a question (they've normally been asked)

 

I have headers that are usually in the first row of the file, but there are some where there is a random date in the first one or two lines.

 

Would any of you be bale to help with, where it says "PSID=" in the first or second row that this is not used as the header, or where it says "product" this is used as the header?

 

Thank you

1 ACCEPTED SOLUTION
v-shex-msft
Community Support
Community Support

Hi @StuBee,

Is your row header start on a specific row or randomly index? If you mean it stored on a fixed row number, your can direct extract specific row value and use it with rename functions.

If you mean stored randomly, I'd like to suggest you store these column names in other tables and direct invoke in rename functions to write custom function to analysis and external column name row values.

Regards,

Xiaoxin Sheng

Community Support Team _ Xiaoxin
If this post helps, please consider accept as solution to help other members find it more quickly.

View solution in original post

3 REPLIES 3
v-shex-msft
Community Support
Community Support

Hi @StuBee,

Is your row header start on a specific row or randomly index? If you mean it stored on a fixed row number, your can direct extract specific row value and use it with rename functions.

If you mean stored randomly, I'd like to suggest you store these column names in other tables and direct invoke in rename functions to write custom function to analysis and external column name row values.

Regards,

Xiaoxin Sheng

Community Support Team _ Xiaoxin
If this post helps, please consider accept as solution to help other members find it more quickly.

Thanks for this, it is that a random 1 or 2 rows may appear (not always) before the headers.

 

Great idea, just rename them. Thank you so much (feeling a little stupid for not thinking of that)

 

🙂

kentyler
Solution Sage
Solution Sage

You can fix this in Power Query, either during the process of loading the data or afterwards. There is an option in the ribbon for removing rows2020-01-20.png

I'm a personal Power Bi Trainer I learn something every time I answer a question

The Golden Rules for Power BI

  1. Use a Calendar table. A custom Date tables is preferable to using the automatic date/time handling capabilities of Power BI. https://www.youtube.com/watch?v=FxiAYGbCfAQ
  2. Build your data model as a Star Schema. Creating a star schema in Power BI is the best practice to improve performance and more importantly, to ensure accurate results! https://www.youtube.com/watch?v=1Kilya6aUQw
  3. Use a small set up sample data when developing. When building your measures and calculated columns always use a small amount of sample data so that it will be easier to confirm that you are getting the right numbers.
  4. Store all your intermediate calculations in VARs when you’re writing measures. You can return these intermediate VARs instead of your final result  to check on your steps along the way.
 




Did this post answer your question? Mark it as a solution so others can find it!

Help when you know. Ask when you don't!




Join the conversation at We Talk BI find out more about me at Slow BI


Helpful resources

Announcements
April AMA free

Microsoft Fabric AMA Livestream

Join us Tuesday, April 09, 9:00 – 10:00 AM PST for a live, expert-led Q&A session on all things Microsoft Fabric!

March Fabric Community Update

Fabric Community Update - March 2024

Find out what's new and trending in the Fabric Community.