Forum Discussion
deboec
Helper I
5 years agoMeasure for Average displayed in Card Visual
Hello guys, I am displaying a Matrix visual in Power BI that shows me a specific value for business units. Business Unit Cost 1 1,000 2 2,000 3 1,500 4 2,500 Total 7,0...
- 5 years ago
OK, you'll need to replace Table[Business Unit] with year and month columns from your date table.
Avg per Month =AVERAGEX(SUMMARIZECOLUMNS(Date[Year], Date[Month],"@Cost", [Cost]),[@Cost]) - 5 years ago
Ok, the SUMMARIZECOLUMNS could be a problem in that case.
We can change that to a SUMMARIZE.
Avg per Month =AVERAGEX(SUMMARIZE(DIM_DATE, DIM_DATE[Year], DIM_DATE[Month]),[Cost Measure])
Anonymous
2 years agoNot applicable
Hi, I'm having the same issue for creating a filterable average in a card visualization.
I would like a card to display an average tool usage based upon a tool and the amount selected on a slicer.
I am very new to DAX formulas so any help would be great. Here is a sample of the data:
| Date | User | Application |
| 12/14/2022 | user1 | Tool 1 |
| 12/14/2022 | user2 | Tool 2 |
| 12/14/2022 | user1 | Tool 1 |
| 12/19/2022 | user2 | Tool 3 |
| 12/27/2022 | user3 | Tool 2 |
Imagine 80K rows of this data highlighting tool and user usage per day (each login is its own row). I need a formula that will average that information based on upon the timeframe selected on the slicer.
Thanks for your help.
Tom