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

Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!

Reply
Anonymous
Not applicable

DAX EXACT

Hi together,

 

Im trying to compare 2 columns of the same table with Dax measure EXACT in PBI:

category check = EXACT('new lines'[Lvl10],'new lines'[category])

 

I get this error: A single value for column 'category' in table 'new lines' cannot be determined. This can happen when a measure formula refers to a column that contains many values without specifying an aggregation such as min, max, count, or sum to get a single result.

 

Could someone help me, please?

 

Kind regards

Dominik

1 ACCEPTED SOLUTION
Fowmy
Super User
Super User

@Anonymous 

If you are adding a new column with your formula, then it works, for measure, you need to add the two fields in a table visual then add the following measure

Measure = EXACT( max('new lines'[Lvl10]) , max('new lines'[category]) )



Did I answer your question? Mark my post as a solution! and hit thumbs up


Subscribe and learn Power BI from these videos

Website LinkedIn PBI User Group

View solution in original post

2 REPLIES 2
Fowmy
Super User
Super User

@Anonymous 

If you are adding a new column with your formula, then it works, for measure, you need to add the two fields in a table visual then add the following measure

Measure = EXACT( max('new lines'[Lvl10]) , max('new lines'[category]) )



Did I answer your question? Mark my post as a solution! and hit thumbs up


Subscribe and learn Power BI from these videos

Website LinkedIn PBI User Group

Anonymous
Not applicable

Thank you Fowmy! It works!

Helpful resources

Announcements
April AMA free

Microsoft Fabric AMA Livestream

Join us Tuesday, April 09, 9:00 – 10:00 AM PST for a live, expert-led Q&A session on all things Microsoft Fabric!

March Fabric Community Update

Fabric Community Update - March 2024

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