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

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes! Register now.

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
September Power BI Update Carousel

Power BI Monthly Update - September 2025

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.