Quantcast
Channel: Power Query topics
Viewing all articles
Browse latest Browse all 31344

How to Remove Changing Values

$
0
0

I have the following data that comes into Power BI from an Excel spreadsheet, which a user updates every week (current week provided as the example):

 

Belgarion42_0-1728429412155.png

 

The top row will not change until Feb 1 next year. For the other 3 rows, the week # changes every week. The next step in my Power Query transformation is to transpose the data so that first column becomes the row headers which needs to be as follows:

 

Annual Commitment

Target number

Actual number

Completion Percentage

 

Once it has been transposed I can rename the columns to remove the characters I don't need, but that puts the exact current text in the Advanced Editor, and when "Week 34" changes next week to "Week 35", it will break.

 

How can I generalize the transformation so that as the week # changes, it still works? Or is that even possible?


Viewing all articles
Browse latest Browse all 31344

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>