Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredGet Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Learn more
Dear all,
I would like to use a measure to calculate baseline values.
In this case, the baseline is the data of the first date on each indicator (and each time, so it is corrected), blue background fields.
I tried to solve the problem, but unfortunately it is not working because if I change the date with the slicer, the baseline is also changing. Can you help me?
Min_Month - MIN(Indicators_Value[Date].[ Month])
Solved! Go to Solution.
My solution:
My solution:
Hi,
Try this
Hi,
Not yet.
You must have a Calendar Table.
Hi Arthur,
I tried with calendar table but it is changing by date slicer.
Hi,
Share the download link of the PBI file and show the expected result very clearly.
Hi,
You may download my PBI file from here.
Hope this helps.
Hi,
In 2rd month or in 3rd month we can't see the "A003" of baseline.
Hi,
Download the revised PBI file from here.
Hope this helps.
Hi,
It is almost good, there is only a small issue that we show "A003" in first month but there is no data for this in January.
In this case enough 1 measure:
Hi,
Modify my measure to
Baseline 1 = if(ISBLANK(AVERAGE(Indicators_Value[Value_%])),BLANK(),CALCULATE(AVERAGE(Indicators_Value[Value_%]),datesbetween('Calendar'[Date],[Date on which value is first available],[Date on which value is first available])))
Hope this helps.
Hi,
But I think not necessary to use auxiliary table with date. Are you agree?
Hi,
Yes, now it is working!
use MINX() and expand the table filter to ALL(Table) to escape your current filter context.
Hi,
It is working with MINX. But just partly. Because the code find the first year, month and day and it is not changed by the slicer but it is shows everytime 1/1/2020 and what I need maybe 2/8/2020 or 1/18/2020 or other date. Depends on the indicator. Do you have any idea?
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
Check out the October 2025 Power BI update to learn about new features.