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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
wToTheH
New Member

Making titles in data table into legends/lables in visuals

wToTheH_0-1759232616080.png

wToTheH_1-1759232749432.png

 

I have a data table that I am adding columns to each week.  Each column of this table shows stock for a given date.  The date is the column header.

 

I want to create a bar chart that shows the amount of stock against each date.  Ideally, I need to put the date at the bottom of the barchart, corresponding the the line for that date, rather than just 'Date' as it is in the picture.

 

As the data table headers are the dates, it makes sense that I should be able to add them below, but I can't find any toggle for this that gives me what I need!  Can anyone help?

1 ACCEPTED SOLUTION

Hi @wToTheH ,

First, verify that the new date column (15th October) has actually been added to the source table. If you’ve added the column to the source but it doesn’t appear in Power BI, make sure to refresh the data in Power Query. Sometimes, a filter might have been applied during your previous steps in Power Query that’s preventing the new column from showing up. If filters exist, modify or remove them to include the 15th October column. Power BI may not recognize the new column if there’s a mismatch in data types. Ensure that the new date (15th October) is in the correct date format. If you’re unpivoting columns, ensure that you correctly select all date columns during the unpivot process, including the one for 15th October. After performing these actions, make sure to click "Close & Apply" in Power Query to apply the changes to the Power BI model. If you don’t apply the changes, Power BI won’t update the dataset.

After applying the changes, go to the Data View in Power BI and check the dataset directly. Look for the 15th October date in the Attribute column. This is where you can confirm if it’s available before visualizing it.

Hope this helps.

View solution in original post

11 REPLIES 11
v-echaithra
Community Support
Community Support

Hi @wToTheH ,

We’d like to follow up regarding the recent concern. Kindly confirm whether the issue has been resolved, or if further assistance is still required. We are available to support you and are committed to helping you reach a resolution.

Best Regards,
Chaithra E.

v-echaithra
Community Support
Community Support

Hi @wToTheH ,

I hope the information provided is helpful. If further assistance is still required, we are available to support you and are committed to helping you reach a resolution.

Best Regards,
Chaithra E.

rohit1991
Super User
Super User

Hi @wToTheH 

Could you please try below Steps:


1. Sample Data Set used to solve problem
image.png

 

2. In Power Query, select all the non-date columns (like CCS, Abbreviated Size, etc.).

  • Right-click >> Unpivot Other Columns.

  • This will convert your date headers (19/08/2025, 15/09/2025, 30/09/2025, etc.) into rows under a new column called Attribute.

  • The stock numbers will go under a column called Value.

image.png

 

3. Changed Table.Click on Close and Apply.
image.png

 

4. Outcome:

image.png

 

 

 

 


Did it work? ✔ Give a Kudo • Mark as Solution – help others too!

Hi, this works really well for the data already in the power BI model.  Next week, I will have to add another column with that week's stock, and again the week after and so on.  Is it possible to do this easily?

Hi @wToTheH 

If you use Unpivot Other Columns in Power Query, any new weekly stock column you add will automatically appear as rows under the Date field after refresh no need to redo the steps.


Did it work? ✔ Give a Kudo • Mark as Solution – help others too!

I wonder if I have missed a step? when I try to add a fictional column for 15th October, it does not appear.  Have you seen this before?

 

wToTheH_0-1759244675078.pngwToTheH_1-1759244719729.png

 

Hi @wToTheH ,

First, verify that the new date column (15th October) has actually been added to the source table. If you’ve added the column to the source but it doesn’t appear in Power BI, make sure to refresh the data in Power Query. Sometimes, a filter might have been applied during your previous steps in Power Query that’s preventing the new column from showing up. If filters exist, modify or remove them to include the 15th October column. Power BI may not recognize the new column if there’s a mismatch in data types. Ensure that the new date (15th October) is in the correct date format. If you’re unpivoting columns, ensure that you correctly select all date columns during the unpivot process, including the one for 15th October. After performing these actions, make sure to click "Close & Apply" in Power Query to apply the changes to the Power BI model. If you don’t apply the changes, Power BI won’t update the dataset.

After applying the changes, go to the Data View in Power BI and check the dataset directly. Look for the 15th October date in the Attribute column. This is where you can confirm if it’s available before visualizing it.

Hope this helps.

Thanks, that's got it!

danextian
Super User
Super User

Hi @wToTheH 

 

Your data isn’t structured correctly for reporting. Dates should be listed in a single column, with another column holding their corresponding values. In the Query Editor, select the CCS and Abbreviated Size columns, then right-click and choose Unpivot Other Columns.  Change the data type of the date column to date after unpivoting. Without this step, you’ll need to manually add each new column to your visual instead of having it update automatically. 

danextian_0-1759234473581.png

 





Dane Belarmino | Microsoft MVP | Proud to be a Super User!

Did I answer your question? Mark my post as a solution!


"Tell me and I’ll forget; show me and I may remember; involve me and I’ll understand."
Need Power BI consultation, get in touch with me on LinkedIn or hire me on UpWork.
Learn with me on YouTube @DAXJutsu or follow my page on Facebook @DAXJutsuPBI.

Hi, this works really well for the data already in the power BI model.  Next week, I will have to add another column with that week's stock, and again the week after and so on.  Is it possible to do this easily?

 Yes it shoudl work as explained by danextian

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.