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.
I am having difficulty trying to figure a way to keep the calculated 2018 data as base value and compare the similar month values from other years to it, in order to determine if we are above the criteria base value (2018) or below.
I have 4 columns, where the RED marked ones are not important for this.
nr. 1: has multiple names. where each has different values (nr. 3) for each year from 2018 and onwards.
column Aar is year.
nr. 2 is the monthly 1 - 12 number.
nr. 3 is the value and nr. 4 is the 73% of the nr. 3 for year 2018 (base year).
Now I am trying to reuse the values for nr. 4 for each corresponding month for each year and it must be the related name.
I have tried anything possible..and cant seem to make it work. any suggestions?
Also Calculate() doesnt work unless you either use min, max, sum etc. in other words scalar values.
thanks in advance
Solved! Go to Solution.
@Anonymous , You need a new column like
Sumx(filter(Table, [Name] =earlier([Name]) && [Month] =earlier([Month]) && [Year] =2018) , [value])
or a new measure with help from date table or a separate year table
calculate(Sum(table[Value]), filter(all('Date'), 'Date'[Year] = 2018))
If this does not help
Can you share sample data and sample output in table format? Or a sample pbix after removing sensitive data.
It wasnt exactly as your code, but your idea of using earlier() gave me the result i wanted: So the solution ended being:
@Anonymous , You need a new column like
Sumx(filter(Table, [Name] =earlier([Name]) && [Month] =earlier([Month]) && [Year] =2018) , [value])
or a new measure with help from date table or a separate year table
calculate(Sum(table[Value]), filter(all('Date'), 'Date'[Year] = 2018))
If this does not help
Can you share sample data and sample output in table format? Or a sample pbix after removing sensitive data.
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 |
---|---|
68 | |
57 | |
55 | |
36 | |
34 |
User | Count |
---|---|
76 | |
73 | |
48 | |
45 | |
43 |