Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more.
Get startedGrow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.
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.
Ask questions in Eventhouse and KQL, Eventstream, and Reflex.
User | Count |
---|---|
84 | |
84 | |
66 | |
62 | |
62 |
User | Count |
---|---|
199 | |
120 | |
110 | |
79 | |
69 |