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
vinothkumar1990
Helper II
Helper II

New table matrix data

Hi,

I have data in the below format.

vinothkumar1990_0-1669653559661.png

 

I want the report in the below format.

vinothkumar1990_1-1669653599575.png

 

Do we have any visuals which report in this format?

 

Thanks in advance!

 

 

1 ACCEPTED SOLUTION

It worked. Thanks!

View solution in original post

3 REPLIES 3
v-zhangti
Community Support
Community Support

Hi, @vinothkumar1990 

 

The matrix view achieves the results you expect.

vzhangti_0-1669708646088.png

No additional calculations are required.

 

Best Regards,

Community Support Team _Charlotte

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

PaulDBrown
Community Champion
Community Champion

You canuse a simple matrix visual with two measures. First, set up dimension tables for Country and Sales Type using the follwoing pattern in new tables:

Country Table = 
DISTINCT(fTable[Country])

Set up a period dimension table using the follwoing:

Period Table = 
ADDCOLUMNS(
    DISTINCT(
        fTable[Week]), 
        "WeekNum", VALUE(RIGHT(fTable[Week], 2)))

You need the WeekNum field to sort the Week field by:

sort.gifSet up the model using one-to-many, single direction relationships between the dimension tables and the corresponding fields in the fact table:

model.jpg

Create the following two measures for the values bucket in the matrix visual:

Store Sales =
CALCULATE (
    SUM ( fTable[Sales Amount] ),
    FILTER ( 'Sales Type Table', 'Sales Type Table'[Sales Type] = "Store Sales" )
)
Web Sales =
CALCULATE (
    SUM ( fTable[Sales Amount] ),
    FILTER ( 'Sales Type Table', 'Sales Type Table'[Sales Type] = "Web Sales" )
)

Now you can set up the matrix as follows:

matrix.jpgresult.jpg

 

Sample PBIX file attached





Did I answer your question? Mark my post as a solution!
In doing so, you are also helping me. Thank you!

Proud to be a Super User!
Paul on Linkedin.






It worked. Thanks!

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.