Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
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
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
113 | |
100 | |
78 | |
76 | |
52 |
User | Count |
---|---|
144 | |
109 | |
108 | |
88 | |
61 |