Forum Discussion
Formula & Matrix visualization
Your measure can simply be - CALCULATE(SUM(amount), SAMEPERIODLASTYEAR(date))+0
Also, create a table for your budget, if needed allocate it at the Budget at the month level.
Use a common Date dimension and use that to do you analysis.
- salonikhedkar_16 years agoHelper II
Yes I do have a target table. But it is not a date dimension. Its just a simple table of country, target, month and a concat field, concatenating country and month. Based on this concatenated field, I am joining this target table with my main table.
This works well. But breaks in conditional formatting. I have a measure which supports conditional formatting. the formula is as follows:
TARGET_MEASURE =
var TARGET = SELECTCOLUMNS(TargetTable, "TARGET", TargetColumn)
RETURNSWITCH(TRUE(),
TARGET>= Amount,1,
TARGET<= Amount,2,
ISBLANK(Amount),3)------------------------------------------------------------------------------------------
This formula compared target vs amount, if target is higher than amount, then 1.....and so on.
It worked well when I had a Target column in my existing table. But when I made a separate Target table, it is consideing consition1 and Blanks as 1- v-lili6-msft6 years agoCommunity Support
Sample data and expected output would help tremendously.
Please see this post regarding How to Get Your Question Answered Quickly:
https://community.powerbi.com/t5/Community-Blog/How-to-Get-Your-Question-Answered-Quickly/ba-p/38490Regards,
Lin