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
I got stuck. How to implement the formula below in Power BI?
if [Current Week]=[Last Week] then "NO1"
elseif [Current Week]<[Last Week] then "P1"
elseif [Current Week]>[Last Week] then "P2"
elseif ISNULL([Last Week]) then "NE"
else ""
END
Solved! Go to Solution.
@Anonymous
You are adding a column I suppose: use the code below:
Column Name=
SWITCH(
TRUE(),
[Current Week]=[Last Week] , "NO1",
[Current Week]<[Last Week] , "P1",
[Current Week]>[Last Week] , "P2",
ISBLANK([Last Week]) , "NE"
)
⭕ Subscribe and learn Power BI from these videos
⚪ Website ⚪ LinkedIn ⚪ PBI User Group
@Anonymous
You are adding a column I suppose: use the code below:
Column Name=
SWITCH(
TRUE(),
[Current Week]=[Last Week] , "NO1",
[Current Week]<[Last Week] , "P1",
[Current Week]>[Last Week] , "P2",
ISBLANK([Last Week]) , "NE"
)
⭕ Subscribe and learn Power BI from these videos
⚪ Website ⚪ LinkedIn ⚪ PBI User Group
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.
Learn from experts, get hands-on experience, and win awesome prizes.
User | Count |
---|---|
113 | |
80 | |
77 | |
43 | |
39 |
User | Count |
---|---|
150 | |
117 | |
67 | |
64 | |
56 |