Hi @Uthhra,
Do you want to display the different Icons according to the data from SP list?
Please offer me more information:
1. how many records do you have between one week?
2. what types of value in "Overall RAG" field?
I assume that there is only one record weekly, and the type of "Overall RAG" is text.
I did some test according to your requirements.
Please try:
1. Add a button and set the OnSelect property as:
Set(LastMonday,DateAdd(Today(),1-Weekday(Today(),StartOfWeek.Monday)-7,TimeUnit.Days));Set(LastSunday,DateAdd(Today(),1-Weekday(Today(),StartOfWeek.Monday)-1,TimeUnit.Days));Set(Monday,DateAdd(Today(),1-Weekday(Today(),StartOfWeek.Monday),TimeUnit.Days));Set(Sunday,DateAdd(Today(),7-Weekday(Today(),StartOfWeek.Monday),TimeUnit.Days));Set(LastC,LookUp(test,Date >= LastMonday && Date <= LastSunday).'Overall RAG');Set(C,LookUp(test,Date >= Monday && Date <= Sunday).'Overall RAG')
2. Add an upward arrow Icon and set the visible property as:
If(LastC = "red" && C = "green",true,false)
3. Add an downward arrow Icon and set the visible property as:
If(LastC = "green" && C = "red",true,false)
4. Add an horizontal Icon and set the visible property as:
If(LastC = "green" && C = "green" || LastC = "red" && C = "red",true,false)
Best Regards,
Kyrie Zhang