Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!
VAR
ReceitasLY = CALCULATE([RECEITAS];SAMEPERIODLASTYEAR('dCalendário'[Data Base]))
return
if([RECEITAS]=BLANK();BLANK();DIVIDE([RECEITAS]-ReceitasLY;ReceitasLY))
1 - The measure is not returning the correct percentage. My current period is Jan to Dec / 2017 and you are not calculating from Jan to Dec / 2016. He's adding up the two years on the table. Totally wrong.
2 - When I select any filter in the same table the measure informs that there is no continuous table of dates. I have the calendar table related to fact table.
Solved! Go to Solution.
Thanks for your suggestions, they are correct, but I need the card to return the calculation from Jan to Oct / 16 from Jan to Oct / 17. In the case would be the percentage of 13.37% (difference until October of each year)
Generally the way that I have seen this done is with measures like this:
YTD Revenue = TOTALYTD(SUM(Sales[Revenue]),'Date'[Date]) LY YTD Revenue = CALCULATE([YTD Revenue],SAMEPERIODLASTYEAR('Date'[Date])) YTD Sales Var = [YTD Revenue]-[LY YTD Revenue] YTD Sales Var % = DIVIDE([YTD Sales Var],[LY YTD Revenue])
Thanks for your suggestions, they are correct, but I need the card to return the calculation from Jan to Oct / 16 from Jan to Oct / 17. In the case would be the percentage of 13.37% (difference until October of each year)
Hi @Anonymous,
How to get the 13.37? From your screenshot, the total value is -6.30% and the card display the same value, which is correct.
Best Regards,
Angelia
User | Count |
---|---|
124 | |
108 | |
99 | |
62 | |
62 |
User | Count |
---|---|
137 | |
115 | |
102 | |
71 | |
61 |