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.
Solved! Go to Solution.
You may check below measure.Create rank and yearmonth column first.
Measure = IF ( ISFILTERED ( sasw[Month] ), CALCULATE ( SUM ( sasw[Total] ), FILTER ( ALL ( sasw ), sasw[Rank] = MAX ( sasw[Rank] ) - 1 ) ), SUM ( sasw[Total] ) )
Regards,
Please use below measure to get the previous month Total.
Measure = CALCULATE ( SUM ( sasw[Total] ), FILTER ( sasw, MONTH ( sasw[As of Date] ) = MONTH ( TODAY () ) - 1 && YEAR ( sasw[As of Date] ) = YEAR ( TODAY () ) ) )
Regards,
Thanks for your response
result should be the total of previous month, please advice
@v-cherch-msft wrote:Please use below measure to get the previous month Total.
Measure = CALCULATE ( SUM ( sasw[Total] ), FILTER ( sasw, MONTH ( sasw[As of Date] ) = MONTH ( TODAY () ) - 1 && YEAR ( sasw[As of Date] ) = YEAR ( TODAY () ) ) )Regards,
You may check below measure.Create rank and yearmonth column first.
Measure = IF ( ISFILTERED ( sasw[Month] ), CALCULATE ( SUM ( sasw[Total] ), FILTER ( ALL ( sasw ), sasw[Rank] = MAX ( sasw[Rank] ) - 1 ) ), SUM ( sasw[Total] ) )
Regards,
One more request.
i have added one table in which we i have last 8 month date.
I wish to use filter from FY 2019 table and SASW total need to reflect selected month total + Last month total
please find the belwo file location
https://1drv.ms/u/s!Ai3rGPgy20kLwRdWKMv6sHk5oNQy?e=kxzxY1
I would suggest you create a new thread on forum so that more community members can see it and provide advice. Please remember to post dummy data and desired result.
Regards,
After updating power BI file and above formula is not working properly.
Please suggest
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 |
---|---|
114 | |
105 | |
78 | |
67 | |
63 |
User | Count |
---|---|
148 | |
107 | |
106 | |
83 | |
70 |