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

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

Reply
eliasayyy
Memorable Member
Memorable Member

list all items if category is "All" after Merge

hello everyone i have a discount table and item table 

Discount : 

annonymous1999_0-1689859067780.png

 


Items:

annonymous1999_1-1689859078368.png

 


in items table, i dont have a All catgeory so when i merge the discount and items , i get inside the all category null 

annonymous1999_2-1689859116014.png


how can i make it so it returns all the item ID

1 ACCEPTED SOLUTION
eliasayyy
Memorable Member
Memorable Member

Step 1

After merging , expand your columns , 

Step 2 

add a new step i named it  allItemIDs

= List.Distinct(Items[Item ID])


step 3 

add a new custom column 

if [Item Category] = "All" then allItemIDs else { [Item ID] }


step 4 

expand to new rows

results

annonymous1999_0-1689861800630.png

 

View solution in original post

1 REPLY 1
eliasayyy
Memorable Member
Memorable Member

Step 1

After merging , expand your columns , 

Step 2 

add a new step i named it  allItemIDs

= List.Distinct(Items[Item ID])


step 3 

add a new custom column 

if [Item Category] = "All" then allItemIDs else { [Item ID] }


step 4 

expand to new rows

results

annonymous1999_0-1689861800630.png

 

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

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