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!!
| User | Count |
|---|---|
| 23 | |
| 19 | |
| 19 | |
| 17 | |
| 11 |
| User | Count |
|---|---|
| 55 | |
| 54 | |
| 40 | |
| 40 | |
| 30 |