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

Prepping for a Fabric certification exam? Join us for a live prep session with exam experts to learn how to pass the exam. Register now.

Reply
PowerBI159
New Member

Data Format in Power BI Query Editor

Hello All,

I have a very simple data format requirement, but I am facing a challenge in Power BI to achieve it. Please find the details below.

Table A:

Fruits CategoryFruits NameFruits Color
OrganicAppleRed
OrganicAppleGreen
OrganicBanana

Green

OrganiGrapes

Green

Non OrganicAppleRed
Non OrganicAppleGreen
Non OrganicBanana

Green

Non OrganicGrapes

Green

 

Below is the Data Output Data Format I am trying

 

Fruits CategoryFruits NameFruits Color
Organic
OrganicAppleRed
OrganicAppleGreen
OrganicBanana

Green

OrganiGrapes

Green

Non Organic
Non OrganicAppleRed
Non OrganicAppleGreen
Non OrganicBanana

Green

Non OrganicGrapes

Green

 

Appreciate all your help!!!

 

Note: Color is not mandatory...

2 REPLIES 2
Anonymous
Not applicable

Hi @PowerBI159 ,

 

To achieve your goal, it should be matrix style and you need to serialize it for your data, otherwise power bi will automatically aggregate it.

vtianyichmsft_0-1728007134715.png

 

Hope it helps!

 

Best regards,
Community Support Team_ Scott Chang

 

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

 

lbendlin
Super User
Super User

Power Query does not support any coloring of data.

Helpful resources

Announcements
May PBI 25 Carousel

Power BI Monthly Update - May 2025

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

Notebook Gallery Carousel1

NEW! Community Notebooks Gallery

Explore and share Fabric Notebooks to boost Power BI insights in the new community notebooks gallery.

May 2025 Monthly Update

Fabric Community Update - May 2025

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