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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
Gigi4691
Frequent Visitor

Sum categories on rows and by months on columns into a Visual table

Hi,

 

How can I produce a visual table with the sum of categories on rows and by months on columns. I don't want to use a matrix (as we get the export data on tabular form). 

I would like to have this result. Thanks in advance for your help!

Gigi4691_1-1722525108329.png

 

 

1 ACCEPTED SOLUTION
Shravan133
Super User
Super User

Hi,

Not sure why you dont want to use a matrix, if your export is in tabular format you can still transform it.

However, workaround which is not recommended and not ideal:

Step 1: Create Measures for Each Month

  1. Create Measures for Each Month:

    • For each month, you need to create a DAX measure that calculates the sum of your category for that specific month. Assuming your date column is named Date, and the category column is named Category, and the value column is named Value, the measures would look like this:
     
    Sum_January = CALCULATE(SUM('YourTable'[Value]), MONTH('YourTable'[Date]) = 1) Sum_February = CALCULATE(SUM('YourTable'[Value]), MONTH('YourTable'[Date]) = 2) Sum_March = CALCULATE(SUM('YourTable'[Value]), MONTH('YourTable'[Date]) = 3) -- Repeat for all months

Step 2: Create a Table Visual

  1. Add a Table Visual:

    • In Power BI Desktop, add a Table visual to your report canvas.
  2. Add Category and Measures:

    • Add the Category column to the table.
    • Add the measures you created for each month to the table.

View solution in original post

2 REPLIES 2
Gigi4691
Frequent Visitor

Hi Shravan133,

The reason why I cannot use the matrix is because the person who will use it, will need sometime to use the option 'Export Data' in order to change manualy some values or categories. She needs the visual as a matrice to present it during the meetings. As she does presenthly in Excel, same as the picutre I added. She doees not have time to transform tabular data to a matrix.

Thank you so much for your answer, I will test it.

Shravan133
Super User
Super User

Hi,

Not sure why you dont want to use a matrix, if your export is in tabular format you can still transform it.

However, workaround which is not recommended and not ideal:

Step 1: Create Measures for Each Month

  1. Create Measures for Each Month:

    • For each month, you need to create a DAX measure that calculates the sum of your category for that specific month. Assuming your date column is named Date, and the category column is named Category, and the value column is named Value, the measures would look like this:
     
    Sum_January = CALCULATE(SUM('YourTable'[Value]), MONTH('YourTable'[Date]) = 1) Sum_February = CALCULATE(SUM('YourTable'[Value]), MONTH('YourTable'[Date]) = 2) Sum_March = CALCULATE(SUM('YourTable'[Value]), MONTH('YourTable'[Date]) = 3) -- Repeat for all months

Step 2: Create a Table Visual

  1. Add a Table Visual:

    • In Power BI Desktop, add a Table visual to your report canvas.
  2. Add Category and Measures:

    • Add the Category column to the table.
    • Add the measures you created for each month to the table.

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

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.

Top Solution Authors
Top Kudoed Authors