Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredGet Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Learn more
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
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
Check out the October 2025 Power BI update to learn about new features.