This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. We're covering it all. You won't want to miss it.
Learn moreLevel up your Power BI skills this month - build one visual each week and tell better stories with data! Get started
Hi Guys,
I would like to seek for help on issue below:
My dataset is breakdown to daily, PIC, Stores and Item of Qty Sold.
| Date | PIC ID | Store ID | Item | Qty Sold |
| 1-Jan | 7001A | A01 | Apple Pie | 75 |
| 2-Jan | 7001A | A01 | Apple Pie | 64 |
| 3-Jan | 7001A | A01 | Apple Pie | 10 |
| 4-Jan | 7001A | A01 | Apple Pie | 46 |
| 1-Jan | 7001A | A02 | Apple Pie | 28 |
| 2-Jan | 7001A | A02 | Apple Pie | 17 |
| 3-Jan | 7001A | A02 | Apple Pie | 92 |
| 4-Jan | 7001A | A02 | Apple Pie | 61 |
| 5-Jan | 7001A | A02 | Apple Pie | 61 |
| 17-Jan | 7002E | A03 | Apple Pie | 93 |
| 18-Jan | 7002E | A03 | Apple Pie | 19 |
| 19-Jan | 7002E | A03 | Apple Pie | 79 |
| 20-Jan | 7002E | A03 | Apple Pie | 67 |
| 1-Jan | 7001A | A01 | Banana Cake | 92 |
| 3-Jan | 7001A | A01 | Banana Cake | 91 |
| 1-Jan | 7001A | A02 | Banana Cake | 49 |
| 2-Jan | 7001A | A02 | Banana Cake | 27 |
| 3-Jan | 7001A | A02 | Banana Cake | 57 |
| 4-Jan | 7001A | A02 | Banana Cake | 71 |
| 5-Jan | 7001A | A02 | Banana Cake | 25 |
| 31-Jan | 7002E | A03 | Banana Cake | 29 |
Currently the requirement is to get the average of qty sold by Item per day. For example, on 1st Jan, Apple Pie is sold in 2 stores, however calculate by item per day is should count as 1 day. Therefore average of qty sold by Apple Pie per day is Total Qty Sold of Apple Pie divided by 9 days (1st Jan-5th Jan & 17th Jan-20th Jan).
In Power Query Editor > "Group by" table for column Item and Date and count Sum of Qty Sold, I am able to get the calculation i wanted by using AVERAGE in Dax in Summarize Table. However my Report have Filters to select Store and PIC. Since Summarize Table no longer breakdown to Store and PIC mean the table relationship is unable to detect and the filter interaction does not works.
Kindly provide some ideas or workaround for this issue.
Thank you. I am greatly appreciate on your help.
Regards,
Yit_Lim
Solved! Go to Solution.
Hi @Anonymous ,
Based on your descrition, you can create this measure:
Average =
VAR s1 =
CALCULATE (
SUM ( 'Table'[Qty Sold] ),
FILTER ( ALL ( 'Table' ), 'Table'[Item] IN DISTINCT ( 'Table'[Item] ) )
)
VAR s2 =
CALCULATE (
DISTINCTCOUNT ( 'Table'[Date] ),
FILTER ( ALL ( 'Table' ), 'Table'[Item] IN DISTINCT ( 'Table'[Item] ) )
)
RETURN
s1 / s2
Show it in the card visual and use the Item slicer to filter it:
Attached a sample file in the below, hopes to help you.
Best Regards,
Yingjie Li
If this post helps then please consider Accept it as the solution to help the other members find it more quickly.
Hi @Anonymous ,
Based on your descrition, you can create this measure:
Average =
VAR s1 =
CALCULATE (
SUM ( 'Table'[Qty Sold] ),
FILTER ( ALL ( 'Table' ), 'Table'[Item] IN DISTINCT ( 'Table'[Item] ) )
)
VAR s2 =
CALCULATE (
DISTINCTCOUNT ( 'Table'[Date] ),
FILTER ( ALL ( 'Table' ), 'Table'[Item] IN DISTINCT ( 'Table'[Item] ) )
)
RETURN
s1 / s2
Show it in the card visual and use the Item slicer to filter it:
Attached a sample file in the below, hopes to help you.
Best Regards,
Yingjie Li
If this post helps then please consider Accept it as the solution to help the other members find it more quickly.
Did you try to use a Matrix
Where you can have the Date as the first Items in Rows, followed by Item, and PIC ID and you can have the Store ID in Columns and choose Average of Qty Sold for Values.
Check out the April 2026 Power BI update to learn about new features.
Sign up to receive a private message when registration opens and key events begin.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
| User | Count |
|---|---|
| 35 | |
| 32 | |
| 25 | |
| 22 | |
| 18 |
| User | Count |
|---|---|
| 65 | |
| 35 | |
| 32 | |
| 25 | |
| 23 |