Power BI is turning 10, and we’re marking the occasion with a special community challenge. Use your creativity to tell a story, uncover trends, or highlight something unexpected.
Get startedJoin us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.
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!
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
11 | |
11 | |
10 | |
9 | |
8 |
User | Count |
---|---|
17 | |
12 | |
11 | |
11 | |
11 |