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

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

Reply
Anonymous
Not applicable

Comparing identical values in columns but detected as different

Hi,

 

I am looking at project allocation to make sure my team aren't over or under allocated. To do this I'm comparing values from one column to another in the same table using the following formula:

 

Allocation = SWITCH(TRUE,('FTE compare'[Project FTE]='FTE compare'[TGI FTE]), "Allocation match", ('FTE compare'[Project FTE]>'FTE compare'[TGI FTE]), "Over allocated", ('FTE compare'[Project FTE]<'FTE compare'[TGI FTE]), "Under allocated")
 
Whilst it work on most of the rows, some with identical values are coming out as "Over allocated".
 
See here:
 
SophRow_0-1647979663861.png

Any help would be greatly appreciated!

 

Thanks, 

Soph

1 ACCEPTED SOLUTION
truptis
Community Champion
Community Champion

@Anonymous -> just check if both the columns are of same data type and both of them have same no. Of decimal places and there is no rounding up of numbers.

View solution in original post

4 REPLIES 4
truptis
Community Champion
Community Champion

@Anonymous -> just check if both the columns are of same data type and both of them have same no. Of decimal places and there is no rounding up of numbers.

Anonymous
Not applicable

Thanks @truptis I converted the data type to text and it worked!

truptis
Community Champion
Community Champion

@Anonymous , Try using this:

Result= if([Project FTE]==[TGI FTE], "Allocation matched", if([Project FTE] > [TGI FTE], "Over alloted", "under alloted"))

 

@Anonymous -> please mark this as a solution and hit the thumbs up if it helps you. Thank you.

Anonymous
Not applicable

Thanks @truptis 

 

I get exactly the same result, i.e. it's still calling two identical values different. I've even been back to the source data and re entered it, and tried a new Power BI file....

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 community update carousel

Fabric Community Update - June 2025

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