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 nowJuly 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! Learn more
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!!
Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.
Join Fabric Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.
| User | Count |
|---|---|
| 27 | |
| 23 | |
| 18 | |
| 15 | |
| 15 |
| User | Count |
|---|---|
| 63 | |
| 42 | |
| 41 | |
| 39 | |
| 37 |