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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
JohnJoe123
Helper II
Helper II

How to get Week Numbers to Display along with Date, Month & Year on a Stacked Column Chart?

Hi Everyone,

 

Here is a Google Drive Link to my Power BI File:

https://drive.google.com/file/d/1j4_sAiBrfIX673pbZsXRR_t-ARgc2WuK/view?usp=drive_link

 

I workin a Factory that makes Microchips.

The Machine that Processes / Manufactures these Microchips is called ISP.

I'm currently looking at the Running Time of the ISP Machine versus the Down Time of the ISP Machine on each Calendar Date.

 

I obtain all of this information from a MySQL Relational Database (Amazon Redshift - AWS) and I wrote the SQL Script to Construct my Power BI Query and its various fields. (Including a Date Field and an ISO Week Number Field)

 

Below is an image of my current graph:

JohnJoe123_1-1714559123365.png

This Stacked Column Chart on the X-Axis shows the Calendar Date, Month and Year.

 

However, I would also like to Display the ISO Week Number of the Year.

I would like something like the below: (I made the below Image in PowerPoint)

JohnJoe123_2-1714559188614.jpeg

Is the Desired Result shown in the Image Above Possible?

 

I do already have an ISO Week Number field in my Power BI Query, but when I add it to this Chart's X-Axis, I get the following Result:

JohnJoe123_3-1714559247314.png

1 ACCEPTED SOLUTION

Hi @JohnJoe123 
As you can see in my screenshot it displays all the level Year> Month > week > date
in your case you must have selected any month and year level in your chart hierarchy.

 

1) select all level up until you reach at year level

Uzi2019_0-1714650226183.png

 

Uzi2019_1-1714650280668.png

 

 

Like above then drill down to all level down untill it is grey out

Uzi2019_2-1714650326035.png

 

 

I hope you would see simliar view as I am getting. somtime you have applied some filter so remove all those filter by check this option

Uzi2019_3-1714650387953.png

 

 

Remove all the selected filter then check the result .

 

I hope I ansered your question!

 

 

 

Don't forget to give thumbs up and accept this as a solution if it helped you!!!

View solution in original post

6 REPLIES 6
v-yilong-msft
Community Support
Community Support

Hi @JohnJoe123 ,

Your solution is great, @Uzi2019 . It worked like a charm! Here I have another idea in mind, and I would like to share it for reference.

I create a table and use it in the Stacked column chart.

vyilongmsft_0-1714618620182.png

vyilongmsft_1-1714618727780.png

Then I choose New group. 

vyilongmsft_2-1714618903802.png

vyilongmsft_3-1714619064573.png

Then I get what you want.

vyilongmsft_4-1714619167466.png

vyilongmsft_5-1714619209653.png

 

 

 

Best Regards

Yilong Zhou

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

Uzi2019
Super User
Super User

Hi @JohnJoe123 

Add your iso week number on 3rd level of hierarchy on X axis
Year > Month > ISO week > Date(day)

Uzi2019_2-1714560390034.png

 

 

Then simply disable this property under X axis setting

Uzi2019_1-1714560356032.png

 

 

I hope I answered your qeustion!

 

 

Don't forget to give thumbs up and accept this as a solution if it helped you!!!

Hi,

Thank you for this,

 

However, when I try this, it displays the Date and Week Number, but not the Month and Year.

JohnJoe123_0-1714643806573.png

 

I understand that it display the Year after the Week Number - but I'd like the Year listed Separately at the lowermost level of the X-Axis.

 

I'd like it to show all of the following:

- Calendar Date

- ISO Week Number

- Month

- Year

Hi @JohnJoe123 
As you can see in my screenshot it displays all the level Year> Month > week > date
in your case you must have selected any month and year level in your chart hierarchy.

 

1) select all level up until you reach at year level

Uzi2019_0-1714650226183.png

 

Uzi2019_1-1714650280668.png

 

 

Like above then drill down to all level down untill it is grey out

Uzi2019_2-1714650326035.png

 

 

I hope you would see simliar view as I am getting. somtime you have applied some filter so remove all those filter by check this option

Uzi2019_3-1714650387953.png

 

 

Remove all the selected filter then check the result .

 

I hope I ansered your question!

 

 

 

Don't forget to give thumbs up and accept this as a solution if it helped you!!!

Thank you so much!

After I applied the help from your first post, I then followed the instructions from your second post - and I achieved the desired result!

JohnJoe123_0-1714653084470.png

Hi @JohnJoe123 
Your welcome!

Don't forget to give thumbs up and accept this as a solution if it helped you!!!

Helpful resources

Announcements
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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