Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
So the values of weighted average based on the dax I used
"dd weighted = DIVIDE ( SUMX( FactDebtors, FactDebtors[amount lcy +] * FactDebtors[Days of Outstanding - Real] ),SUM(FactDebtors[amount lcy +]) )" are: April = 127, May = 122 and June = 124.
The measure "dd weighted qtd = TOTALQTD([dd weighted],'Calendar'[Date])" provides me with output : April = 127, May = 124 and June = 124.
So the values which I expect from dd weighted qtd are : April = 127, May = 249 and June = 373.
Can someone please help on this ?
What we are getting :
I am not getting the qtd as it should be as it is showing me a average of dd weighted
what we wanted :
Expected Output
Hi,
Share the download link of the PBI file.
Actually my collegue helped and he updated the code :
what do you guys think can there be any improvements ?
Also sorry we can't share the pbix file as we have client's data.
Run your Query through DAX Sudio and see if the query plan and the performance is acceptable for your amount of data.
Keep the quarter filter and set/override the month filter to less than or equal to current month.
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
| User | Count |
|---|---|
| 39 | |
| 38 | |
| 38 | |
| 28 | |
| 27 |
| User | Count |
|---|---|
| 124 | |
| 88 | |
| 73 | |
| 66 | |
| 65 |