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
Anonymous
Not applicable

Line item with multiple tag/categories

Hi, in need of some help - could be a very simple fix. 

I have a large db with line items with multiple tags (both high level tag and low level sub-tag)

Each line item may have more than one tag/sub-tag and also may have the same high level tag twice but a different low level sub-tag. I essentially want to create a pivot table showing tag > under it sub-tag. Is there a way to do this with PowerBI? thanks in advance!

 

a.JPG

 

1 ACCEPTED SOLUTION

So like the attached?


@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
The Definitive Guide to Power Query (M)

DAX is easy, CALCULATE makes DAX hard...

View solution in original post

7 REPLIES 7
ibarrau
Super User
Super User

Hi, before I say "Yes", can you please show your excpected result to help us understand completely your idea?

Regards,


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

Happy to help!

LaDataWeb Blog

Greg_Deckler
Super User
Super User

I think you will need to unpivot your data.


@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
The Definitive Guide to Power Query (M)

DAX is easy, CALCULATE makes DAX hard...
Anonymous
Not applicable

It is not pivoted? I want a pivot table or essentially a table displaying:

 

Tag (X)                             Count

----Sub-Tag (a)                Count

----Sub-Tag (b)                Count 

Tag (Y)                              Count 

 

W all the tags collated. Etc...

 

Thanks 

So like the attached?


@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
The Definitive Guide to Power Query (M)

DAX is easy, CALCULATE makes DAX hard...

Ok. The data is like "pivot". So you can select your tag columns in edit queries and look for the "unpivot columns" option to make that expected result work.

 

Hope this helps,


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

Happy to help!

LaDataWeb Blog

Anonymous
Not applicable

legends! Thank  you both for your help 🙂

Anonymous
Not applicable

Sorry, the problem I am having is that there are some lines w say 

 

Tag X, Sub-tag A but also Tag X, Sub-tag B?? Hope that helps 😕

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.