Forum Discussion
nested ifs on different tables
Hi,
i have these pbi formulas below but then priority and duration are on 2 separate tables. how do i draft the formula based on the below. Appreciate your help. 🙂
IF (
priority = "p1",
IF (
duration <= 2,
"Pass",
"Fail"
),
IF (
priority = "p2",
IF (
duration <= 4,
"Pass",
"Fail"
),
BLANK ()
)
)3 Replies
- parry2k
Super User
Anonymous what is the relationship between these tables? One to one, one to many? if it is one to many, which side is many, and which is one, provide the model details for the solution.
✨ Follow us on LinkedIn and to our YouTube channel
I would ❤ Kudos if my solution helped. 👉 If you can spend time posting the question, you can also make effort to give Kudos to whoever helped to solve your problem. It is a token of appreciation!
⚡ Visit us at https://perytus.com, your one-stop shop for Power BI-related projects/training/consultancy.
- AnonymousNot applicable
hi,
here's the table relationships.
Duration is inside the incident fact table.
SMC OUTAGE_FACT (OUTAGEPRIORITYKEY) => OUTAGE_PRIORITY_DIM (OUTAGEPRIORITYKEY)
*Many to One - Single
INCIDENT_FACT (OUTAGE_SEQUENCE) => SMC OUTAGE_FACT (SEQUENCE_NUMBER)
*Many to One - Both
- parry2k
Super User
Anonymous so you have 3 tables, in which table you want to add the column and from what table.
Which table has a priority column?
Which table has a duration column?
In which table do you want to add a column, and from what table?
You have to explain everything in detail, you know your model better, not us, having partial information doesn't help at all. Read this post to get your answer quickly.
https://community.powerbi.com/t5/Community-Blog/How-to-Get-Your-Question-Answered-Quickly/ba-p/38490✨ Follow us on LinkedIn and to our YouTube channel
I would ❤ Kudos if my solution helped. 👉 If you can spend time posting the question, you can also make effort to give Kudos to whoever helped to solve your problem. It is a token of appreciation!
⚡ Visit us at https://perytus.com, your one-stop shop for Power BI-related projects/training/consultancy.