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

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric 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
Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.