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.
Good afternoon. Please need your help.
I have two periods anaules of sales distributed monthlymenes dode in each period there was a monthly inflation
Example in the month of January there was an inflation of 84% from January 2021 to January 2022.
My query is how I can do to deflate the month of January 2022 keeping the same amount of January 2021 in the same graph or table.
Translating it into precise numbers would require that for example January 2021 continues to be $55,741,897 but January 2022 should be $65,474,585
Thank you!!!!
Solved! Go to Solution.
how about using switch() or if() function in that measure? such like
switch(true(),
min(table[year])= _current_year , your expression1,
min(table[year])= _last_year , your expression2)
Best Regards,
Community Support Team _Tang
If this post helps, please consider Accept it as the solution to help the other members find it more quickly.
Good morning. Thanks for the reply but unfortunately this is not what I am looking for.
I already have those two measures that you mention.
Average Annual Inflation = 76%
Sales Selected Year = SUM(Sales[Sales Amount])
Previous Year Sales = CALCULATE(SUM(Sales[Sales Amount]),SAMEPERIODLASTYEAR ('Date'[Date]))
When creating two different measures I have no problem sticking to it on the two cards located on the left side of the report.
The problem I have is to be able to present it in the bar graph since it allows me to only locate a single measure and I just want to present in a single measure the selected year deflated through the function DIVIDE (Sales Selected Year, (1 + Annual Average Inflation) and Previous Year Sales
It's possible?
Thank you.
how about using switch() or if() function in that measure? such like
switch(true(),
min(table[year])= _current_year , your expression1,
min(table[year])= _last_year , your expression2)
Best Regards,
Community Support Team _Tang
If this post helps, please consider Accept it as the solution to help the other members find it more quickly.
@Syndicate_Admin , You can try measures like
MTD Sales = CALCULATE(SUM(Sales[Sales Amount]),DATESMTD('Date'[Date]))
last year MTD Sales = CALCULATE(SUM(Sales[Sales Amount]),DATESMTD(dateadd('Date'[Date],-12,MONTH)))
or
Year behind Sales = CALCULATE(SUM(Sales[Sales Amount]),dateadd('Date'[Date],-1,Year))
Year behind Sales = CALCULATE(SUM(Sales[Sales Amount]),SAMEPERIODLASTYEAR('Date'[Date]))
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 |
---|---|
56 | |
55 | |
54 | |
37 | |
29 |
User | Count |
---|---|
77 | |
62 | |
45 | |
40 | |
40 |