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.
Hello everybody,
I am trying to get the variations between the revenue of the current month and the last one, but only these two without including the rest of the date in the data.
So I tried
Solved! Go to Solution.
Hi @Anonymous,
You need a date dimention table first. Also, add a calculated column [index] in it.
Date = CALENDAR(MIN(Revenue[Date]),MAX(Revenue[Date]) )
index = RANKX('Date',YEAR([Date])*100+MONTH([Date]),,ASC,Dense)
TM revenue = SUM(Revenue[Amount]) LM revenue = CALCULATE([TM revenue],FILTER(ALLSELECTED('Date'),'Date'[index]=MAX('Date'[index])-1))
Hi @Anonymous,
You need a date dimention table first. Also, add a calculated column [index] in it.
Date = CALENDAR(MIN(Revenue[Date]),MAX(Revenue[Date]) )
index = RANKX('Date',YEAR([Date])*100+MONTH([Date]),,ASC,Dense)
TM revenue = SUM(Revenue[Amount]) LM revenue = CALCULATE([TM revenue],FILTER(ALLSELECTED('Date'),'Date'[index]=MAX('Date'[index])-1))
Good information, but still didnt resolve my problem. I need to sum the revenue of this month, and compare to the last month revenue sum, and then see the variaton. Thanks
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 |
---|---|
112 | |
97 | |
84 | |
67 | |
61 |
User | Count |
---|---|
150 | |
120 | |
99 | |
87 | |
68 |