The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends September 15. Request your voucher.
I need help with getting the average qty of invoices PSIXXXX (No - field) based on the day posted (Posting_Date)
Solved! Go to Solution.
@LogixAdex , Create date table a having day , week and month
The create measure like
divide(sum(table[Qty]), distinctcount(Date[Year Week]) )
or a measure like
Averagex( Values(Date[Week Year]), Calculate( Sum(Table[QTY])) )
Hi @LogixAdex ,
You could create a measure like below:
Measure = CALCULATE(AVERAGE('Table'[qty]),FILTER(ALLEXCEPT('Table','Table'[order]),WEEKNUM('Table'[date])=WEEKNUM(SELECTEDVALUE('Table'[date]))))
For per day and per month, just change the corresponding condition in the formula.
Best Regards,
Jay
Hi @LogixAdex ,
You could create a measure like below:
Measure = CALCULATE(AVERAGE('Table'[qty]),FILTER(ALLEXCEPT('Table','Table'[order]),WEEKNUM('Table'[date])=WEEKNUM(SELECTEDVALUE('Table'[date]))))
For per day and per month, just change the corresponding condition in the formula.
Best Regards,
Jay
@LogixAdex , Create date table a having day , week and month
The create measure like
divide(sum(table[Qty]), distinctcount(Date[Year Week]) )
or a measure like
Averagex( Values(Date[Week Year]), Calculate( Sum(Table[QTY])) )
User | Count |
---|---|
14 | |
11 | |
8 | |
6 | |
5 |
User | Count |
---|---|
28 | |
19 | |
14 | |
8 | |
5 |