The ultimate Microsoft Fabric, Power BI, Azure AI, and SQL learning event: Join us in Stockholm, September 24-27, 2024.
Save €200 with code MSCUST on top of early bird pricing!
Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started
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
Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.
Check out the August 2024 Power BI update to learn about new features.
Learn from experts, get hands-on experience, and win awesome prizes.
User | Count |
---|---|
113 | |
80 | |
77 | |
43 | |
39 |
User | Count |
---|---|
150 | |
117 | |
67 | |
64 | |
56 |