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
SunilPatil
Regular Visitor

how to enter row level formula in Power BI

Team,

 

I have One column, i simple want to chech whther record is duplicate or not.. by comaring two rows on same column.. How do i enter row level formula in power BI 

 

Please suggest

 

In Excel I normally do that if A2=A3 then true ,false and so on

 

 

 

 

1 ACCEPTED SOLUTION

Hi @SunilPatil,

 

Great to help! Have you tried it? If it works, could you accept it as solution to close this thread?

 

If you still have any question on this issue, feel free to post here. Smiley Happy

 

Regards

View solution in original post

5 REPLIES 5
v-ljerr-msft
Employee
Employee

Hi @SunilPatil,


I have One column, i simple want to chech whther record is duplicate or not.. by comaring two rows on same column.. How do i enter row level formula in power BI 


If you simply want to check whether the record is duplicate or not within the column, you should be able to use the formula(DAX) below to create a new calculate column in your table in this scenario. Smiley Happy

IsDuplicate =
IF (
    CALCULATE (
        COUNTA ( 'Table1'[Column1] ),
        FILTER ( ALL ( 'Table1' ), 'Table1'[Column1] = EARLIER ( 'Table1'[Column1] ) )
    )
        > 1,
    "Yes",
    "No"
)

Note: You will need to replace 'Table1'[Column1] with your real table name and column name.

 

c2.PNG

 

Regards

Oh.. Thanks a lot

Hi @SunilPatil,

 

Great to help! Have you tried it? If it works, could you accept it as solution to close this thread?

 

If you still have any question on this issue, feel free to post here. Smiley Happy

 

Regards

SunilPatil
Regular Visitor

Team, 

 

Any update on How to entry Row level formula as mentioned below.

 

 

There's some very good introduction material available, this includes your question: https://powerbi.microsoft.com/en-us/guided-learning/powerbi-learning-1-4-advanced-data-sources-and-t...

Imke Feldmann (The BIccountant)

If you liked my solution, please give it a thumbs up. And if I did answer your question, please mark this post as a solution. Thanks!

How to integrate M-code into your solution -- How to get your questions answered quickly -- How to provide sample data -- Check out more PBI- learning resources here -- Performance Tipps for M-queries

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.