We've captured the moments from FabCon & SQLCon that everyone is talking about, and we are bringing them to the community, live and on-demand. Starts on April 14th. Register now
Hi good day can anyone help me on my calculated column,
- If the Job_ID is equal to Y in Fab column then search Fab in trade column if none Pending if there is Done
- If the Job_ID is equal to N in Fab column then result is Done
- If the Job_ID is equal to D in Fab column then result is Done
Thank you
Solved! Go to Solution.
Hi @AllanBerces
According to your snapshot
The following dax code should return what you need
RESULT=
IF(
'Test'[Fab] = "Y",
IF(
CALCULATE(
COUNTROWS('Test'),
ALLEXCEPT('Test', 'Test'[Job ID]),
'Test'[Trade] = "Fab"
) > 0,
"Done",
"Pending"
),
"Done"
)
Result =
IF(
Table[Fab] IN {"N", "D"},
"Done",
IF(
Table[Fab] = "Y" && Table[Trade] = "Fab",
"Done",
"Pending"
)
)
Result =
IF(
Table[Fab] IN {"N", "D"},
"Done",
IF(
Table[Fab] = "Y" && Table[Trade] = "Fab",
"Done",
"Pending"
)
)
Hi @AllanBerces
According to your snapshot
The following dax code should return what you need
RESULT=
IF(
'Test'[Fab] = "Y",
IF(
CALCULATE(
COUNTROWS('Test'),
ALLEXCEPT('Test', 'Test'[Job ID]),
'Test'[Trade] = "Fab"
) > 0,
"Done",
"Pending"
),
"Done"
)
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
| User | Count |
|---|---|
| 54 | |
| 39 | |
| 32 | |
| 17 | |
| 15 |
| User | Count |
|---|---|
| 64 | |
| 63 | |
| 37 | |
| 36 | |
| 22 |