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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Anonymous
Not applicable

How to do it in power BI

Hi everyone, 

 

I'm attaching a snap of my spraedsheet.

Is it possible to create a column like that in PowerBI, Ideally I should get zeros for the duplicates, comparing to the previous row.

 

1c.PNG

 

Thanks,

Nagaraj

4 REPLIES 4
BeemsC
Resolver III
Resolver III

I don't know exactly what you mean, but from what i can understand. That's possible, yes

Anonymous
Not applicable

I would like to have a column comparing the current row value with previous and assign "0" if they are same and "1" if different.

 

If you can see the image I have attached, I have written a function in Excel i.e. "=IF(A2=A1,0,1)" .

 

If it is possible in Power BI, Can you please tell me how?

 

 

Thanks

You mean you want to create an IF function for a specific row right?
This would be possible by first giving ur column an unique index number.
Then you can compare the values with the same IF formula by using the index number instead of A5 and A6

Anonymous
Not applicable

Can you please tell me how?

 

May be you can take the above excample.

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

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.