Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredGet Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Learn more
Hello,
How do i apply this rule in dax please
IF 'PPM'[Steps] in {"Open for competition","Technical Evaluation Stage","Financial Evaluation Stage","Procurement Board","Legal Review","Contract Signature",""} then AMOUNT = 'PPM'[Estimated Amount] IF 'PPM'[Steps] = "Process Finalized" then AMOUNT = 'PPM'[Cumulated Contract Amount] |
Thank you
Solved! Go to Solution.
@Nihed I believe you are looking for this, pbix is attached
Column 2 =
IF (
PPM[Process Steps]
IN {
"Open for Competition",
"Technical Evaluations",
"Financial Negotiations",
"Procurement Board",
"Legal Review",
"Signature",
""
},
PPM[Estimated Amount],
IF ( PPM[Process Steps] IN { "Finalised" }, PPM[Cumulated Contract Amount] )
)
else
Column = SWITCH(TRUE(),
CONTAINSSTRING(PPM[Steps],"Open for competition")=TRUE()||
CONTAINSSTRING(PPM[Steps],"Technical Evaluation Stage")=TRUE() ||
CONTAINSSTRING(PPM[Steps],"Financial Evaluation Stage")=TRUE() ||
CONTAINSSTRING(PPM[Steps],"Procurement Board")=TRUE() ||
CONTAINSSTRING(PPM[Steps],"Legal Review")=TRUE() ||
CONTAINSSTRING(PPM[Steps],"Contract Signature")=TRUE() , PPM[Estimated Amount],
CONTAINSSTRING(PPM[Steps],"Process Finalized")=TRUE(), PPM[Cumulated Contract Amount])
switch(true(),
'PPM'[Steps] in {"Open for competition","Technical Evaluation Stage","Financial Evaluation Stage","Procurement Board","Legal Review","Contract Signature",""}
,'PPM'[Estimated Amount]
'PPM'[Steps] = "Process Finalized", 'PPM'[Cumulated Contract Amount])
I did it like this but it doesn’t work 😕
@Nihed provide some more details then; e.g. sample data and expected output
This KPI is displayed in the following table:
I must calculate the AMOUNT field
The metric is defined below:
KPI | Source | Filters | Source fields | Rules |
Amount | PPM tab | Type = “CFT” | Cumulated Contract Amount Estimated Amount | IF 'PPM'[Steps] in {"Open for competition","Technical Evaluation Stage","Financial Evaluation Stage","Procurement Board","Legal Review","Contract Signature",""} then AMOUNT = 'PPM'[Estimated Amount] IF 'PPM'[Steps] = "Process Finalized" then AMOUNT = 'PPM'[Cumulated Contract Amount] |
@Nihed please provide sample data in table format
@Nihed I believe you are looking for this, pbix is attached
Column 2 =
IF (
PPM[Process Steps]
IN {
"Open for Competition",
"Technical Evaluations",
"Financial Negotiations",
"Procurement Board",
"Legal Review",
"Signature",
""
},
PPM[Estimated Amount],
IF ( PPM[Process Steps] IN { "Finalised" }, PPM[Cumulated Contract Amount] )
)
else
Column = SWITCH(TRUE(),
CONTAINSSTRING(PPM[Steps],"Open for competition")=TRUE()||
CONTAINSSTRING(PPM[Steps],"Technical Evaluation Stage")=TRUE() ||
CONTAINSSTRING(PPM[Steps],"Financial Evaluation Stage")=TRUE() ||
CONTAINSSTRING(PPM[Steps],"Procurement Board")=TRUE() ||
CONTAINSSTRING(PPM[Steps],"Legal Review")=TRUE() ||
CONTAINSSTRING(PPM[Steps],"Contract Signature")=TRUE() , PPM[Estimated Amount],
CONTAINSSTRING(PPM[Steps],"Process Finalized")=TRUE(), PPM[Cumulated Contract Amount])
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
Check out the October 2025 Power BI update to learn about new features.
| User | Count |
|---|---|
| 9 | |
| 5 | |
| 4 | |
| 3 | |
| 3 |
| User | Count |
|---|---|
| 23 | |
| 12 | |
| 11 | |
| 9 | |
| 8 |