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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
aritaa01
Frequent Visitor

How to Put Attribute below Measure in a Column

Hi, 

I Have a Table as show below

aritaa01_0-1689041081218.png

I need to move category Product below Measure. and the result should be like this table:

aritaa01_1-1689041200337.png

What should i do to Create those Visual Table in Power BI.

Thanks
Regards

andri



5 REPLIES 5
johnyip
Super User
Super User

To display your data like this, you have to use a matrix, but the underlying data you are using must follow the correct structure, like the following.

 

TypeChannelProductSalesReturnDiscount
Sales ValueModern TradeProduct A1000  
ReturnModern TradeProduct A 200 
DiscountModern TradeProduct A  50
Sales ValueModern TradeProduct B8000  
ReturnModern TradeProduct B 100 
DiscountModern TradeProduct B  200
Sales ValueRetailProduct A2000  
ReturnRetailProduct A 300 
DiscountRetailProduct A  150
Sales ValueRetailProduct B7000  
ReturnRetailProduct B 200 
DiscountRetailProduct B  100
Sales ValueSecond DealerProduct A3500  
ReturnSecond DealerProduct A 300 
DiscountSecond DealerProduct A  100
Sales ValueSecond DealerProduct B5000  
ReturnSecond DealerProduct B 300 
DiscountSecond DealerProduct B  150

 

And then, create measures to capture the sales / return / discounts of your data.

 

johnyip_0-1689043286153.png

 

 



Please mark my post as the solution if this answers your question!
Appreciate your Kudos !!

So Basically i should unpivot the Table. there is no other ways, due to the data much bigger

Yes, i believe this is the only way, unless there are some other custom visuals that are capable of displaying the data in your required format.



Please mark my post as the solution if this answers your question!
Appreciate your Kudos !!
Mid_anderson
New Member

You can try to make a new column to your category product, something like this: product, channel, sales value, return, discount 

Hi @Mid_anderson 
For my case the category have a hierarcy level, as Sample for Segment/ Sub Segment
Product A Segment : Book, Pen
Product B Segment: Milk, Yogurt
and it will have a lot of segment/ sub segment product

any others advice for this?

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

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.