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

Microsoft is giving away 50,000 FREE Microsoft Certification exam vouchers. Get Fabric certified for FREE! Learn more

Reply
martinnilsson
Frequent Visitor

Display Quarter and Months in X axis for a data table view

Hi,

I am new to Power BI and I have a data set that I want to display similar to the table below.  The data is showing figures per month in the X axis together with the quarters and column name (Sales Numbers).  Is this possible in Power BI.  I worked a little in Tableau and it was straightforward, just adding quarter and month fields to columns field.  Power BI looks to work differently.

Appreciate any help.

 

      Sales Numbers      
  Q1  Q2  Q3  Q4 
CustomerJanFebMarAprMayJunJulAugSepOctNovDec
AAA101112131415161718192021
BBB303132333435363738394041
CCC202122232425262728293031
Total606366697275788184879093

 

-M.

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

Thanks for the reply from vicky_ , please allow me to add some more information:
Hi  @martinnilsson ,

You can use the matrix viusal to achieve the desired result.

vyangliumsft_0-1739437209518.png

I created sample data:

vyangliumsft_1-1739437209519.png

Place [Customer] in Rows and [Date] in Columns to show the date hierarchy results and only show “Quarter” and “Month”.

vyangliumsft_2-1739437248941.png

Click on the yellow icon to display the full hierarchy, and here the data for [Month] will be displayed:

vyangliumsft_3-1739437248943.png

Visualizations –  Column Subtotals set to OFF

vyangliumsft_4-1739437278864.png

Visualizations – Title is set to ON

Text – You can customize the content of the header here

Horizontal alignment – Set to center

vyangliumsft_5-1739437295987.png

 

 

Best Regards,

Liu Yang

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

View solution in original post

2 REPLIES 2
v-yangliu-msft
Community Support
Community Support

Thanks for the reply from vicky_ , please allow me to add some more information:
Hi  @martinnilsson ,

You can use the matrix viusal to achieve the desired result.

vyangliumsft_0-1739437209518.png

I created sample data:

vyangliumsft_1-1739437209519.png

Place [Customer] in Rows and [Date] in Columns to show the date hierarchy results and only show “Quarter” and “Month”.

vyangliumsft_2-1739437248941.png

Click on the yellow icon to display the full hierarchy, and here the data for [Month] will be displayed:

vyangliumsft_3-1739437248943.png

Visualizations –  Column Subtotals set to OFF

vyangliumsft_4-1739437278864.png

Visualizations – Title is set to ON

Text – You can customize the content of the header here

Horizontal alignment – Set to center

vyangliumsft_5-1739437295987.png

 

 

Best Regards,

Liu Yang

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

vicky_
Super User
Super User

The easy option (but not as performant) is to use an automatic date / time feature: https://www.sqlbi.com/articles/automatic-time-intelligence-in-power-bi/, which generates a heirarchy for you that can easily be used in your reports. If you have an existing date table, it would be easy enough to add 2 columns for qtr and month - something like:

Month = FORMAT(YourTableName[Date], "M")

 

Helpful resources

Announcements
March PBI video - carousel

Power BI Monthly Update - March 2025

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

March2025 Carousel

Fabric Community Update - March 2025

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

Top Solution Authors
Top Kudoed Authors