Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
1 year ago
Solved

Week numbers as column headers? How to plot?

Greetings folks,   Novice Power BI user here, tasked with figuring all of this out on behalf of ze office.   I have a question for which the internet does not seem to have a solution: We have ex...
  • BhavinVyas3003's avatar
    1 year ago

    Load your Excel table into Power BI.

    In Power Query Editor (Home > Transform Data):

    • Select all columns that are not week numbers (e.g., Product, Region, etc.)
    • Go to the Transform tab and click Unpivot Other Columns

    You’ll now have:

    • A column called something like Attribute (this holds your week numbers)
    • A column called Value (this holds the data for those weeks)

    Rename Attribute to WeekNumber and Value to something meaningful like Sales, Hours, or whatever applies.

    Click Close & Apply.

     

    Now in Power BI Report,

    Create a line chart or bar chart

    Drag WeekNumber to the X-axis

    Drag your value field (e.g., Sales) to the Y-axis