Supplies are limited. Contact info@espc.tech right away to save your spot before the conference sells out.
Get your discountScore big with last-minute savings on the final tickets to FabCon Vienna. Secure your discount
Solved! Go to Solution.
Hi
I was able to create such a chart:
Using this as measure:
single adjusted value =
var vminDate = CALCULATE (
MIN (CPI[Date] ),
ALLSELECTED ( CPI[Date] )
)
var vbase = CALCULATE(
sum(CPI[Sales]),
FILTER(ALLSELECTED(CPI[Date]),
CPI[Date]=vminDate))
return (sum(CPI[Sales])/vbase)*100
Try the above, or if you want to edit your code directly, replace the removefilters in the base value with a filter for all selected.
one more thing to try:
I noticed that if I have the date as a hierarchy in the chart, it has trouble calculating the min of the date, and returns flat lines
Chart with date as hierarchy:
However, when I change to the date as a value on it's own ,the problem is solved:
Chart with date as single value:
HTH,
Pi
Hi
I was able to create such a chart:
Using this as measure:
single adjusted value =
var vminDate = CALCULATE (
MIN (CPI[Date] ),
ALLSELECTED ( CPI[Date] )
)
var vbase = CALCULATE(
sum(CPI[Sales]),
FILTER(ALLSELECTED(CPI[Date]),
CPI[Date]=vminDate))
return (sum(CPI[Sales])/vbase)*100
Try the above, or if you want to edit your code directly, replace the removefilters in the base value with a filter for all selected.
one more thing to try:
I noticed that if I have the date as a hierarchy in the chart, it has trouble calculating the min of the date, and returns flat lines
Chart with date as hierarchy:
However, when I change to the date as a value on it's own ,the problem is solved:
Chart with date as single value:
HTH,
Pi
Thank you! I have tried all solutions (exhausting them all) and the real issue was the date as a value instead of as a hierarchy,
Thanks again!
It's often something that simple!
Glad it helped!
User | Count |
---|---|
12 | |
11 | |
8 | |
6 | |
6 |
User | Count |
---|---|
24 | |
19 | |
14 | |
10 | |
7 |