cancel
Showing results for 
Search instead for 
Did you mean: 

Fabric is Generally Available. Browse Fabric Presentations. Work towards your Fabric certification with the Cloud Skills Challenge.

Reply
JessSherman
Frequent Visitor

Trying to create a new column that differentiates by quarter

Trying to categorize customers into 3 Tiers. Tier one and 3 are working but tier 2 I'm struggling with. It needs to be customers who are estimated to close within 90 days and don't have a signed customer agreement (872960001). The date functions are really messing me up. If anyone can help0 it would be greatly appreciated!

 

Tier is the column name

 

"Tier", each if [nik_signedcustomeragreementwdealer] = 872960000 then "Tier 1"

else if [estimatedclosedate] = DATESINPERIOD('CALENDAR TABLE V2'[Date],TODAY(), +1, QUARTER) and [nik_signedcustomeragreementwdealer] = 872960001 then "Tier 2"

else "Teir 3")

1 ACCEPTED SOLUTION
BeaBF
Impactful Individual
Impactful Individual

Hi @JessSherman 

try with:

Tier =
VAR CurrentDate = TODAY()
VAR EstimatedCloseDate = [estimatedclosedate]
VAR SignedCustomerAgreement = [nik_signedcustomeragreementwdealer]
RETURN
IF(
SignedCustomerAgreement = 872960000,
"Tier 1",
IF(
AND(
EstimatedCloseDate <= EDATE(CurrentDate, 3), 
SignedCustomerAgreement <> 872960001
),
"Tier 2",
"Tier 3"
)
)

BBF

View solution in original post

2 REPLIES 2
BeaBF
Impactful Individual
Impactful Individual

Hi @JessSherman 

try with:

Tier =
VAR CurrentDate = TODAY()
VAR EstimatedCloseDate = [estimatedclosedate]
VAR SignedCustomerAgreement = [nik_signedcustomeragreementwdealer]
RETURN
IF(
SignedCustomerAgreement = 872960000,
"Tier 1",
IF(
AND(
EstimatedCloseDate <= EDATE(CurrentDate, 3), 
SignedCustomerAgreement <> 872960001
),
"Tier 2",
"Tier 3"
)
)

BBF

Genius thank you!

Helpful resources

Announcements
PBI November 2023 Update Carousel

Power BI Monthly Update - November 2023

Check out the November 2023 Power BI update to learn about new features.

Community News

Fabric Community News unified experience

Read the latest Fabric Community announcements, including updates on Power BI, Synapse, Data Factory and Data Activator.

Power BI Fabric Summit Carousel

The largest Power BI and Fabric virtual conference

130+ sessions, 130+ speakers, Product managers, MVPs, and experts. All about Power BI and Fabric. Attend online or watch the recordings.

Top Solution Authors
Top Kudoed Authors