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.
I have data in the following format. I'm quite new to PowerBi. I'm trying to find out monthly average for each of the categories below.
Can anyone please help me with DAX? I have to find out monthly average for column [Rate] considering both the categories [Location] and [Type]. I'm not sure how to solve this if I add two slicers with Location and category.
Please see the following picture. Forming a similar graph is my target. I added two slicers with location and type to get this. But it plots sum of rate for each month. I want to plot average of rate for each month instead of sum .
Hi @Anonymous ,
I'd try it with the following measure:
MonthlyAverageRate = VAR _currMonth = MONTH ( SELECTEDVALUE ( Table[Date] ) ) RETURN CALCULATE ( AVERAGE ( Table[Rate] ), REMOVEFILTERS ( Table[Date] ), MONTH ( Table[Date] ) = _currMonth )
Here the result with the slicer on Location = 'D'
I created an additional measure called AverageRate which does not consider the Average per month requirement:
/Tom
https://www.tackytech.blog/
https://www.instagram.com/tackytechtom/
Did I answer your question❓➡️ Please, mark my post as a solution ✔️ |
Also happily accepting Kudos 🙂 |
Feel free to connect with me on LinkedIn! | |
#proudtobeasuperuser | |
I have create a table "Create Average" and made this measure ==>
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 |
---|---|
87 | |
81 | |
53 | |
38 | |
35 |