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

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

Reply
jaswalsarthak
Frequent Visitor

Display multiple set of value Matrix

Hi All, i want to display values as a set. I.E. after 1 set of value is displayed for months, then i want another set of value after that.

 

Currently for each month both the values are showing. Please see below for reference.

 

 Jan Feb 
Product Sales % ChangeSales % Change
a100200%300100%
b200400%500500%
c300800%700200%
d400400%400700%

 

I would like to have it shown in the below format. Please adivce Thanks

 

 JanFebJanFeb
Product Sales Sales % Change% Change
a100300200%100%
b200500400%500%
c300700800%200%
d400400400%700%
1 ACCEPTED SOLUTION
saud968
Super User
Super User

you can use a combination of measures and custom columns to rearrange your data. Here’s a step-by-step guide to help you set it up:


Step 1: Create Measures for Sales and % Change
First, ensure you have measures for Sales and % Change for each month. For example:

Sales_Jan = CALCULATE(SUM(Sales[Amount]), Sales[Month] = "Jan")
Sales_Feb = CALCULATE(SUM(Sales[Amount]), Sales[Month] = "Feb")
Percent_Change_Jan = CALCULATE(SUM(Sales[Percent Change]), Sales[Month] = "Jan")
Percent_Change_Feb = CALCULATE(SUM(Sales[Percent Change]), Sales[Month] = "Feb")


Step 2: Create a Custom Table
Create a custom table to hold the rearranged data. You can use the UNION function to combine the data in the desired format:

CombinedTable =
UNION(
SELECTCOLUMNS(
Sales,
"Product", Sales[Product],
"Jan", [Sales_Jan],
"Feb", [Sales_Feb],
"Jan % Change", BLANK(),
"Feb % Change", BLANK()
),
SELECTCOLUMNS(
Sales,
"Product", Sales[Product],
"Jan", BLANK(),
"Feb", BLANK(),
"Jan % Change", [Percent_Change_Jan],
"Feb % Change", [Percent_Change_Feb]
)
)


Step 3: Create the Visual
Add a Table Visual: Add a table visual to your report.
Add Columns: Add the columns from the CombinedTable to the table visual in the order you want them to appear: Product, Jan, Feb, Jan % Change, Feb % Change.

Step 4: Format the Table
Adjust Column Widths: Adjust the column widths to ensure the data is displayed clearly.
Apply Conditional Formatting: If needed, apply conditional formatting to highlight specific values or trends.
Example Data Layout
Your table should now look like this:

Jan Feb Jan Feb
Product Sales Sales % Change % Change
a 100 300 200% 100%
b 200 500 400% 500%
c 300 700 800% 200%
d 400 400 400% 700%

Best Regards
Saud Ansari
If this post helps, please Accept it as a Solution to help other members find it. I appreciate your Kudos!

View solution in original post

1 REPLY 1
saud968
Super User
Super User

you can use a combination of measures and custom columns to rearrange your data. Here’s a step-by-step guide to help you set it up:


Step 1: Create Measures for Sales and % Change
First, ensure you have measures for Sales and % Change for each month. For example:

Sales_Jan = CALCULATE(SUM(Sales[Amount]), Sales[Month] = "Jan")
Sales_Feb = CALCULATE(SUM(Sales[Amount]), Sales[Month] = "Feb")
Percent_Change_Jan = CALCULATE(SUM(Sales[Percent Change]), Sales[Month] = "Jan")
Percent_Change_Feb = CALCULATE(SUM(Sales[Percent Change]), Sales[Month] = "Feb")


Step 2: Create a Custom Table
Create a custom table to hold the rearranged data. You can use the UNION function to combine the data in the desired format:

CombinedTable =
UNION(
SELECTCOLUMNS(
Sales,
"Product", Sales[Product],
"Jan", [Sales_Jan],
"Feb", [Sales_Feb],
"Jan % Change", BLANK(),
"Feb % Change", BLANK()
),
SELECTCOLUMNS(
Sales,
"Product", Sales[Product],
"Jan", BLANK(),
"Feb", BLANK(),
"Jan % Change", [Percent_Change_Jan],
"Feb % Change", [Percent_Change_Feb]
)
)


Step 3: Create the Visual
Add a Table Visual: Add a table visual to your report.
Add Columns: Add the columns from the CombinedTable to the table visual in the order you want them to appear: Product, Jan, Feb, Jan % Change, Feb % Change.

Step 4: Format the Table
Adjust Column Widths: Adjust the column widths to ensure the data is displayed clearly.
Apply Conditional Formatting: If needed, apply conditional formatting to highlight specific values or trends.
Example Data Layout
Your table should now look like this:

Jan Feb Jan Feb
Product Sales Sales % Change % Change
a 100 300 200% 100%
b 200 500 400% 500%
c 300 700 800% 200%
d 400 400 400% 700%

Best Regards
Saud Ansari
If this post helps, please Accept it as a Solution to help other members find it. I appreciate your Kudos!

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

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