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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
anupampandey
Helper III
Helper III

Old vs New Customers

Hi Team,

 

I am not able to identify the new customers added in current month. Below is the link to access the excel file which is having the data of customers.

"https://1drv.ms/x/s!AlBszrYdSOY2lscVCwbW1xlb4TidJg"

 

Please help me into this.

 

Thanks,

Anupam

 

1 ACCEPTED SOLUTION
v-ljerr-msft
Microsoft Employee
Microsoft Employee

Hi,

 

@Greg_Deckler, to flag the new customers added in current month, no need to compare the Day part in the condition of your formula.Smiley Happy

 

@anupampandey, you should be able to use the formula below to create a calculate column in your customer table to flag the new customers added in current month.

IsNewCustomAddedInCurrentMonth =
IF (
    MONTH ( Sheet1[Tran_DT] ) = MONTH ( TODAY () )
        && YEAR ( Sheet1[Tran_DT] ) = YEAR ( TODAY () ),
    1,
    0
)

c2.PNG

 

Regards

View solution in original post

4 REPLIES 4
v-ljerr-msft
Microsoft Employee
Microsoft Employee

Hi,

 

@Greg_Deckler, to flag the new customers added in current month, no need to compare the Day part in the condition of your formula.Smiley Happy

 

@anupampandey, you should be able to use the formula below to create a calculate column in your customer table to flag the new customers added in current month.

IsNewCustomAddedInCurrentMonth =
IF (
    MONTH ( Sheet1[Tran_DT] ) = MONTH ( TODAY () )
        && YEAR ( Sheet1[Tran_DT] ) = YEAR ( TODAY () ),
    1,
    0
)

c2.PNG

 

Regards

Thanks I got it right.

 

 

Regards

Hi @anupampandey,

 

Great to hear the problem got resolved! Could you accept the corresponding reply as solution to help others who may have similar issue easily find the answer and close this thread?Smiley Happy

 

Regards

Greg_Deckler
Super User
Super User

Add a column in your data model:

 

IsCurrentMonth = IF(DAY([Trans_DT]) = DAY(TODAY()) && MONTH([Trans_DT]) = MONTH(TODAY()) && YEAR([Trans_DT]) = YEAR(TODAY()),1,0)


Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
Power BI Cookbook Third Edition (Color)

DAX is easy, CALCULATE makes DAX hard...

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.