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.
Hello,
Note: I am still very new to Power BI and writing DAX so any help is appreciated!
So I'm looking at pick times for orders. The excel report that I'm running has 50000 slots, but only about 23,000 are actuall filled which leaves me with a lot of 0's. When I highlight the column 'Total Pick Seconds', with the 0's filtered out, to have Excel give me the average of 213 seconds.
When I import the data into Power BI, I edit the PICK_ID query to filter out any PICK_ID that is a zero since it's technically empty.
I then made a column
DPT_PICK_TIME = (AVERAGE(Table1[Total Pick Seconds]) which spat out the average as 222.47, but unfortunately it would give me the save average for every single day being 222.47. This is on par when I make a card with Average of 'Total Pick Seconds'
I then rewrote the column to be
Solved! Go to Solution.
I did not get it completely. But how you take Average is will decide you Average.
So if take
DPT_PICK_TIME = (AVERAGE(Table1[Total Pick Seconds])
It is simple Avg of all rows
DPT_PICK_TIME = CALCULATE(AVERAGE(Table1[Total Pick Seconds]), ALLEXCEPT(Table1,Table1[DAY]))
It will take avg at day level and then use that in final average
Hi @Anonymous
you might consider creating pbix file that will contain some sample data (remove the confidential info), upload the pbix to onedrive or dropbox and share the link to the file. Please do not forget to describe the expected results based on this sample data.
I did not get it completely. But how you take Average is will decide you Average.
So if take
DPT_PICK_TIME = (AVERAGE(Table1[Total Pick Seconds])
It is simple Avg of all rows
DPT_PICK_TIME = CALCULATE(AVERAGE(Table1[Total Pick Seconds]), ALLEXCEPT(Table1,Table1[DAY]))
It will take avg at day level and then use that in final average
Please see this post regarding How to Get Your Question Answered Quickly: https://community.powerbi.com/t5/Community-Blog/How-to-Get-Your-Question-Answered-Quickly/ba-p/38490
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 |
---|---|
109 | |
106 | |
87 | |
74 | |
66 |
User | Count |
---|---|
125 | |
114 | |
98 | |
81 | |
73 |