Forum Discussion

PowerBI159's avatar
PowerBI159
New Member
1 year ago
Solved

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

  • Power Query does not support any coloring of data.

  • Anonymous's avatar
    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.

     

    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.