Okay, I’m having trouble with the last part of getting the percent change into [Day score].
I’ve got my virtual column [VYesterdayAvgAll] working with this formula: (ty!) But it is not displaying [Avg all] from yesterday, it’s just blank.
ANY(
SELECT(
Activity Diary[Avg All],
[Date] = (TODAY() - 1)
)
)
And I’ve got my virtual column [VPercentChangeAvgAll] working with this formula: (ty!)
IF(
OR(
ISBLANK([Avg All]),
ISBLANK([VYesterdayAvgAll]),
[VYesterdayAvgAll] = 0
),
“”,
([Avg All] - [VYesterdayAvgAll]) / [VYesterdayAvgAll]
)
Now I just need to display the percent change in my normal column [Day score]. It feels like this will be easy by just pulling [VPercentChangeAvgAll] into my normal column [Day score] but that didnt work. Your formula seen below breaks the App and gives me this Error “Column ‘Day score’ in Table ‘Activity Diary_Schema’ of Column Type ‘Percent’ has an invalid expression in the Formula field.‘=IF( ISBLANK([VPercentChangeAvgAll]), “”, IF( [VPercentChangeAvgAll] > 0, “+” & TEXT([VPercentChangeAvgAll], “0.00%”), TEXT([VPercentChangeAvgAll], “0.00%”) ) )’. TEXT function with two arguments requires a temporal type and text representing a date format” [Day score] is set to TYPE “Percent” and both virtual columns are TYPE “Decimal”
Also, I see where this formula will add the “+” for a positive change, but I don’t see where it will add the “-” for a negative change.
Also, why do I need the “0.00%” in there, it feels like this will display “0.00%” which I did get in [Day score] while I was adjusting the formula/trying it a little differently before breaking the App. (tyvm for your help, I think I am very close to having this work!!)
Also, it feels like I might want to include the “+” or “-” part into my virtual columns [VPercentChangeAvgAll], and then just display that calculation data in my normal column [Day score].
This formula below my normal column [Day score] breaks the App, with the Error seen above:
IF(
ISBLANK([VPercentChangeAvgAll]),
“”,
IF(
[VPercentChangeAvgAll] > 0,
“+” & TEXT([VPercentChangeAvgAll], “0.00%”),
TEXT([VPercentChangeAvgAll], “0.00%”)
)
)