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

Level up your Power BI skills this month - build one visual each week and tell better stories with data! Get started

Reply
andiart
Regular Visitor

Categories in Rows as column

Hi,

 

I have an excel export from our ticket system. It is sorted by category. This category stands as a leading row before a bunch of real data rows. So, where the id is, there sometimes is the category for the next x rows. Like that:

 

ID            | Title          |       Requestor

----------------------------------------

Emailserver|null|null....

1             | No Mail    | Erwin

2             | Plain text  | Janina

Citrix|null|null....

3             | no login..  | John

......

 

So I'd like to have the categories as a column for all successing row until the new category and so on.

 

I know it is to accomplish, because I have seen it in a video, but I forgot how, because I'm completely new to power bi,

 

Anyone can hint?

 

Andreas

 

1 ACCEPTED SOLUTION
andiart
Regular Visitor

I found a solution:

 

1. added a conditional column "Category" with "null value in second row" as a condition

2. "fill down" in new column

3. filter second column not showing rows with "null" value

View solution in original post

4 REPLIES 4
andiart
Regular Visitor

Hi,

 

in the data transform window under "Transform column" there are those icons:

 

andiart_0-1712815163577.png

 

Use "Bedingte Spalte" , which means conditional column

It results in the following code for this step:

 

= Table.AddColumn(#"Umbenannte Spalten2", "Kategorie", each if [Anforderungsmodus] = null then [#"Kat"] else null)

 

The fill down of the category is in the transform tab, it is called "Ausfüllen" in german:

 

andiart_1-1712815331308.png

 

You can choose the direction down in this step.

andiart
Regular Visitor

I found a solution:

 

1. added a conditional column "Category" with "null value in second row" as a condition

2. "fill down" in new column

3. filter second column not showing rows with "null" value

Is there any way you can provide the exact steps as I am a beginner? I selected "Conditional Column" in the Add Column menu but it does not allow me to add the condition "null value in second row". Also, how do I "fill down" in the new column? TIA!

So in the first step I copy the category to a column of its own, because in my case it stood in the first colum, where are real values as well. I used a conditional column, with a condition to copy only the value from the first column if a certain other column is null, which is only the case, when it is a category column, because in real value lines there are values in that column, as the category stands alone in its row.

The Fill down in the newly created column just copies the category value into each row beneath until a new category value appears, where it does the same copying with that value. So each row has the corresponding category. I hope that helps you.

Helpful resources

Announcements
April Power BI Update Carousel

Power BI Monthly Update - April 2026

Check out the April 2026 Power BI update to learn about new features.

Fabric SQL PBI Data Days

Data Days 2026 coming soon!

Sign up to receive a private message when registration opens and key events begin.

New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.