Microsoft Fabric Community Conference 2025, March 31 - April 2, Las Vegas, Nevada. Use code FABINSIDER for a $400 discount.
Register nowThe Power BI DataViz World Championships are on! With four chances to enter, you could win a spot in the LIVE Grand Finale in Las Vegas. Show off your skills.
Hello,
in my current PBI project, I have created a measure called as "last_month_flag" which, according to time filters, will output "Yes" if the month in 2023 is the last selected one, else "No".
Now I would like to use this last_month_flag measure to aggregate KPIs, in particular to AVERAGE those months flagged as "No" to quickly compare vs last selected month. Is there a way to do this?
Any idea or suggestion would be much appreciated. 😊
Many thanks,
salabb
I hope this message finds you well. I've noticed that this solution remain unresolved. If any of you have managed to find a resolution to the issue, I kindly request that you share your solution for the benefit of the entire community. Alternatively, if you're still facing challenges, please do let us know as well.
Your insights and updates will greatly assist others who might be encountering the same challenge.
Hi salabb,
Although I don't know what table and column you want to get the average, something like below may work.
Average of non-last month =
CALCULATE ( AVERAGE ( 'Table'[Amount] ), [last_month_flag] = "No" )
Average of non-last month =
CALCULATE ( AVERAGE ( 'Table'[Amount] ), [last_month_flag] = "No" )
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Check out the February 2025 Power BI update to learn about new features.
User | Count |
---|---|
24 | |
13 | |
11 | |
10 | |
9 |
User | Count |
---|---|
18 | |
14 | |
14 | |
13 | |
12 |