The ultimate Microsoft Fabric, Power BI, Azure AI, and SQL learning event: Join us in Stockholm, September 24-27, 2024.
Save €200 with code MSCUST on top of early bird pricing!
Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started
Hello Team,
I am having difficulty converting this calc from tableau to pbi dax. Any suggestions?
They both come from different tables that are not related. One is an actual table and the other comes from my Measure Table(stored calculations area)
IF Attr([Channel Partner Customer Classification])="DM" AND [Annualized Sales]<500000 then 0
ELSEIF Attr([Channel Partner Customer Classification])="DM" AND[Annualized Sales]<1000000 then 2
ELSEIF Attr([Channel Partner Customer Classification])="DM" AND[Annualized Sales]<2000000 then 3
ELSEIF [Annualized Sales]<100000 then 0
ELSEIF [Annualized Sales]<250000 then 2
ELSEIF [Annualized Sales]>=1500000 then 10
END
Solved! Go to Solution.
a =
SWITCH (
Attr[Channel Partner Customer Classification],
"DM",
SWITCH (
TRUE (),
[Annualized Sales] < 500000, 0,
[Annualized Sales] < 1000000, 2,
[Annualized Sales] < 2000000, 3
),
SWITCH (
TRUE (),
[Annualized Sales] < 100000, 0,
[Annualized Sales] < 250000, 2,
10
)
)
Note you have a logic gap in both halfs.
a =
SWITCH (
Attr[Channel Partner Customer Classification],
"DM",
SWITCH (
TRUE (),
[Annualized Sales] < 500000, 0,
[Annualized Sales] < 1000000, 2,
[Annualized Sales] < 2000000, 3
),
SWITCH (
TRUE (),
[Annualized Sales] < 100000, 0,
[Annualized Sales] < 250000, 2,
10
)
)
Note you have a logic gap in both halfs.
Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.
Check out the August 2024 Power BI update to learn about new features.
User | Count |
---|---|
107 | |
82 | |
77 | |
46 | |
39 |
User | Count |
---|---|
135 | |
109 | |
70 | |
64 | |
55 |