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

Power BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.

Reply
holodan95
Helper II
Helper II

List only those items, that have several barcodes registered

Hello All,

 

I'm currently working with an item list and I have to show those only, that have several barcodes registered.

The problem is, that I need the barcodes as well.

 

I made a matrix, in which I show the item code, and the distinct count of the barcodes with a filter set to

> 1. This nicely gives me a list of item codes, that have more than one barcodes, however I cannot figure out how

to show the same list, without the number of distinct barcodes, but the actual barcodes.

 

What I have (with the filter set to barcode distinct > 1)

ItemCodeBarcode (distinct)
ITEM12
ITEM26
ITEM33
ITEM44
ITEM54

 

I need:

ItemCodeBarcode (actual)
ITEM14445
ITEM14498
ITEM28887
ITEM26659
ITEM24447
ITEM21113
ITEM23325
ITEM29956
ITEM346456
ITEM378784
ITEM331312
ITEM4etc..
ITEM5etc..

 

When I add the barcodes as not summarized, and add the filter, it obviously doesn't show anything.

 

Please help me with a solution!

 

Thank you!

3 REPLIES 3
holodan95
Helper II
Helper II

Hello All,

 

I've tried to overcome the problem with a slicer, however it doesn't work either. I add a measure to the slicer (really simple: If(DISTINCTCOUNT(XY) > 1 , 1 , 0) and set it to 1.

 

While this will only list the correct items in the slicer, when I select "select all" on the slicer menu, it simply doesn't care about the measure I've set as a filter to it. I'm desperate at this point.

CNENFRNL
Community Champion
Community Champion

CNENFRNL_0-1666265453210.png

 


Thanks to the great efforts by MS engineers to simplify syntax of DAX! Most beginners are SUCCESSFULLY MISLED to think that they could easily master DAX; but it turns out that the intricacy of the most frequently used RANKX() is still way beyond their comprehension!

DAX is simple, but NOT EASY!

Hi,

 

Thank you, but it seems that this will not solve my problem. The list I have has 30M rows, with duplicates. In some cases there is only one barcode to one itemcode. In other cases there are more. I need a list of those item codes, that have more than one barcode pairs, with the actual barcodes showing.

Helpful resources

Announcements
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.