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.
Olá galera estou querendo criar um KPI para mostrar a taxa de crescimento ou diminuição em comparação a outro mês.
No caso o KPI seria a porcentagem do Mês 08, do ano de 2018 vs 2017.
Solved! Go to Solution.
Hi @Antonio_Flávio,
I made one sample for your reference.
Firstly, we need to create a date table using the formula and create the relationship between the date table and the fact table.
Table = CALENDARAUTO()
Then we can create the measaures as below.
total sales = CALCULATE(SUM(Table1[sales]))
Previous = var previsou =CALCULATE(SUM(Table1[sales]),SAMEPERIODLASTYEAR(Table1[date])) return IF(ISBLANK(previsou),BLANK(),([total sales]-previsou)/previsou)
Also please find the file attached.
Regards,
Frank
Hi @Antonio_Flávio,
I made one sample for your reference.
Firstly, we need to create a date table using the formula and create the relationship between the date table and the fact table.
Table = CALENDARAUTO()
Then we can create the measaures as below.
total sales = CALCULATE(SUM(Table1[sales]))
Previous = var previsou =CALCULATE(SUM(Table1[sales]),SAMEPERIODLASTYEAR(Table1[date])) return IF(ISBLANK(previsou),BLANK(),([total sales]-previsou)/previsou)
Also please find the file attached.
Regards,
Frank
Thank you !
Hi @Antonio_Flávio,
Does that make sense? If so, kindly mark my answer as a solution to close the case.
Regards,
Frank
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 |
---|---|
81 | |
79 | |
58 | |
35 | |
34 |
User | Count |
---|---|
99 | |
59 | |
56 | |
46 | |
40 |