Get certified for free when you join Fabric Data Days 2026 and dive into Fabric, Power BI, SQL, AI, and other essential data skills.
Join nowTry your skills in the Power BI Dataviz World Championship! Round one ends June 26. Join now
Hello all!
I'm trying to monthly my weight by distinct count of dates doing:
Solved! Go to Solution.
Try this measure:
MONTHLY WEIGHT =
VAR vTable =
ADDCOLUMNS (
SUMMARIZE ( Plan1, Plan1[DESTINY], Plan1[ORIGIN] ),
"@Weight", CALCULATE ( SUM ( Plan1[WEIGHT] ) ),
"@CountDistinctDate", CALCULATE ( DISTINCTCOUNT ( Plan1[DATE] ) )
)
VAR vResult =
SUMX ( vTable, DIVIDE ( [@Weight], [@CountDistinctDate] ) )
RETURN
vResult
Proud to be a Super User!
Try this measure:
MONTHLY WEIGHT =
VAR vTable =
ADDCOLUMNS (
SUMMARIZE ( Plan1, Plan1[DESTINY], Plan1[ORIGIN] ),
"@Weight", CALCULATE ( SUM ( Plan1[WEIGHT] ) ),
"@CountDistinctDate", CALCULATE ( DISTINCTCOUNT ( Plan1[DATE] ) )
)
VAR vResult =
SUMX ( vTable, DIVIDE ( [@Weight], [@CountDistinctDate] ) )
RETURN
vResult
Proud to be a Super User!
Thank you!!! It works fine and solve my problem!!
Don't miss out on Data Days, June 15 through August 7. Learn Fabric, Power BI, SQL, AI and more.
Check out the May 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 22 | |
| 22 | |
| 21 | |
| 19 | |
| 12 |
| User | Count |
|---|---|
| 58 | |
| 53 | |
| 41 | |
| 34 | |
| 32 |