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.
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 ==>
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 |
---|---|
115 | |
99 | |
86 | |
70 | |
62 |
User | Count |
---|---|
151 | |
120 | |
103 | |
87 | |
68 |