Starting December 3, join live sessions with database experts and the Microsoft product team to learn just how easy it is to get started
Learn moreGet certified in Microsoft Fabric—for free! For a limited time, get a free DP-600 exam voucher to use by the end of 2024. Register now
Hey guys
I'm quit new in DAX and i'm working on a report which I have no idea how to solve. Its the following problem:
What do I need?
I want to have an extra colum with the following rule:
Yes: If the colums Budget, Fortschritt, Risiken, Ressourcen and Termin contain one or more of the number "3" AND three or more of the number 2. So if either of them applies, it should give out a "yes"
No: if the rule above does not apply
The rows which are marked yellow in the example should have a yes, and the last one should have a now.
Thanks for the help!
Solved! Go to Solution.
@Anonymous ,
Try a new column like
switch ( True(),
[Budget] >=3 || [Fortschritt]>=3 || [Risiken]>=3 || [Ressourcen]>=3 || [Termin]>=3 , "Yes",
if([Budget]=2,1,0) + if([Fortschritt]=2,1,0) + if([Risiken]=2,1,0) + if([Ressourcen]=2,1,0) + if([Termin]=2,1,0) >=3, "Yes",
"No"
)
@Anonymous ,
Try a new column like
switch ( True(),
[Budget] >=3 || [Fortschritt]>=3 || [Risiken]>=3 || [Ressourcen]>=3 || [Termin]>=3 , "Yes",
if([Budget]=2,1,0) + if([Fortschritt]=2,1,0) + if([Risiken]=2,1,0) + if([Ressourcen]=2,1,0) + if([Termin]=2,1,0) >=3, "Yes",
"No"
)
Hi @Anonymous
Try this as a Calculated Column
New Column =
SWITCH (
TRUE (),
Table[Budget]
|| Table[Fortschritt]
|| Table[Risiken]
|| Table[Ressourcen]
|| Table[Termin] = 3, "Yes",
Table[Budget] + Table[Fortschritt] + Table[Risiken] + Table[Ressourcen] + Table[Termin] >= 8, "Yes",
"No"
)
Regards,
Harsh Nathani
Did I answer your question? Mark my post as a solution! Appreciate with a Kudos!! (Click the Thumbs Up Button)
Starting December 3, join live sessions with database experts and the Fabric product team to learn just how easy it is to get started.
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early Bird pricing ends December 9th.
User | Count |
---|---|
26 | |
20 | |
19 | |
14 | |
13 |
User | Count |
---|---|
43 | |
36 | |
24 | |
23 | |
21 |