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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
netanel
Post Prodigy
Post Prodigy

If is blank

Hey All!

Need your help guys

i have this Measure:

_Site =
VAR _diff_Site =
CALCULATE (
MAX ( Append2[Finance Site] ),
FILTER (
Append2,
Append2[First Name] = EARLIER ( Append2[First Name] )
&& Append2[Person Number] = EARLIER ( Append2[Person Number] )
)
)
RETURN
IF ( _diff_Site <> Append2[Finance Site], "change", BLANK () )
 

The Measure basically tells me that if a person has made a change from record to record
I will get the word "change"
I want to add to it the possibility that even if person did not exist before
(I mean in the record before him)
So show me as  "NEW"
mean that new employee who has joined

Can help?








Did I answer your question?
Mark my post as a solution!
Appreciate your Kudos!

Connect on Linkedin
linkedin.com/in/netanel-shriki
1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @netanel ,

Not sure if your data table has a date column like @amitchandak mentions or a column with numeric data type for easy identification of each record, if it does, change your calculated column formula just as @amitchandak suggested. Instead, you can add an index column in the Query Editor and update your calculated column formula as follows:

yingyinr_0-1646642354748.png

_Site = 
VAR _diff_Site =
    CALCULATE (
        MAX ( Append2[Finance Site] ),
        FILTER (
            ALL ( Append2 ),
            Append2[First Name] = EARLIER ( Append2[First Name] )
                && Append2[Person Number] = EARLIER ( Append2[Person Number] )
                && 'Append2'[Index] < EARLIER ( 'Append2'[Index] )
        )
    )
RETURN
    IF (
        ISBLANK ( _diff_Site ),
        "New",
        IF ( _diff_Site <> Append2[Finance Site], "change", BLANK () )
    )

yingyinr_1-1646642419180.png

Best Regards

View solution in original post

2 REPLIES 2
Anonymous
Not applicable

Hi @netanel ,

Not sure if your data table has a date column like @amitchandak mentions or a column with numeric data type for easy identification of each record, if it does, change your calculated column formula just as @amitchandak suggested. Instead, you can add an index column in the Query Editor and update your calculated column formula as follows:

yingyinr_0-1646642354748.png

_Site = 
VAR _diff_Site =
    CALCULATE (
        MAX ( Append2[Finance Site] ),
        FILTER (
            ALL ( Append2 ),
            Append2[First Name] = EARLIER ( Append2[First Name] )
                && Append2[Person Number] = EARLIER ( Append2[Person Number] )
                && 'Append2'[Index] < EARLIER ( 'Append2'[Index] )
        )
    )
RETURN
    IF (
        ISBLANK ( _diff_Site ),
        "New",
        IF ( _diff_Site <> Append2[Finance Site], "change", BLANK () )
    )

yingyinr_1-1646642419180.png

Best Regards

amitchandak
Super User
Super User

@netanel , I think you should record other then current that logic is missing.

 

may be date < earlier(date)

 

Return can be

Switch(True(),

isblank(_diff_Site), "New" 

_diff_Site<> Append2[Finance Site], "change"

, BLANK () )

 

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

Check out the August 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

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