Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.
Hi there,
I have spent a while looking through a simple way to convert RAG status to individual numbers - The information is pulled from a sharepoint list into PowerBI, however, I can only find overly complicated/partial solutions that do not give me what I need. The cassification will either be "R", "A" or "G" as below:
What is the exact formula that I would need in creating a new column to convert R = 1, A = 2 and G = 3 ?
I would then pull this information through and use conditional formatting for icons to support dashboard creation (visuals).
Thanks for any support that you could give here 🙂
Solved! Go to Solution.
Hi, @Anonymous
Try this:
each if [Status] = "R" then 1 else if [Status] = "A" then 2 else if [Status] = "G" then 3 else null
Proud to be a Super User!
@Anonymous Try:
if [Status] = "R" then 1 else if [Status] = "A" then 2 else if [Status] = "G" then 3
@Greg_Deckler thanks for the support, however, it doesnt work, I have the following issue:
any suggestions? thanks in advance 🙂
Hi, @Anonymous
Try this:
each if [Status] = "R" then 1 else if [Status] = "A" then 2 else if [Status] = "G" then 3 else null
Proud to be a Super User!
@ALLUREAN perfect, exactly what I needed! Thank you both for your support and trouble shooting here. Great community!
User | Count |
---|---|
93 | |
83 | |
77 | |
72 | |
66 |
User | Count |
---|---|
115 | |
103 | |
93 | |
64 | |
61 |