Yes, That IS a Measure
Third and Final Mini-Post for Today
Got a question from a friend yesterday that made me realize I should share this: in PowerPivot, your formulas do NOT have to return numbers. As I’ve shown several times, they can return dates, but they can also return just plain and simple text.
For instance, check out the formula for that Trend measure above:
[Trend] = IF([$ - Sales] > [$ - Sales YAG], “Up”, “Down”)
[$ – Sales] and [$ – Sales YAG] are both measures (“current sales” and “sales year ago.”) So this IF() is 100% dynamic and responds to whatever fields and filtering/slicing you’ve done on your pivot! If sales have gone up since last year, it returns “Up,” otherwise it returns “Down.”
One of those cool little tricks that comes in handy from time to time ![]()
Sadly these text measures are not supported in Power View in SQL Server 2012. You can enjoy them in Excel only.
Doh!
Well, I’m an Excel-head at heart so maybe that’s ok. Then again I need images supported in Excel, which gives me Power View envy.