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

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

Reply
eliasayyy
Super User
Super User

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
Super User
Super User

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
Super User
Super User

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
Sept PBI Carousel

Power BI Monthly Update - September 2024

Check out the September 2024 Power BI update to learn about new features.

September Hackathon Carousel

Microsoft Fabric & AI Learning Hackathon

Learn from experts, get hands-on experience, and win awesome prizes.

Sept NL Carousel

Fabric Community Update - September 2024

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