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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
craftbeer
Regular Visitor

Check if Words are different

Hi,

 

I am triying to use EXACT to check if Brands are different or not

I have a big table and i dont know how to check if the manufacturer in each category is unique.

I started with an old formula based on numbers and i think earlier does not belong here.

 

My idea is to check all the manufacturer in each category and give true or false.

column with dax = EXACT(FILTER('Tablename', 'Tablename'[Category] = EARLIER?!(Tablename[Manufacturer])))

error: EXACT needs at least two arguments i guess i need some kind of an array of all the different manufacturer for each category.

CategoryManufacturercolumns with dax
CarBMWtrue
CarVWtrue
CarGMtrue
TruckFordtrue
TruckMANtrue
TruckMercedestrue
Bus

Bus1

false
BusBus1false
BusBus2true
2 REPLIES 2
amitchandak
Super User
Super User

@craftbeer , Try a new column like

 

new column =
var _cnt = countx(filter(Table, [Category] = earlier([Category]) && [Manufacturer] = earlier([Manufacturer])),[Manufacturer])
return
if(_cnt =1, true(), false())

thank you @amitchandak 

 

it is working but i didnt understand all of it by now

Helpful resources

Announcements
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

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.

Top Solution Authors