Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredJoin 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.
Hi
I have some sales at different times of the day and I count each sale on that day as one.
Is there a function which will sum up the counts for each day.
So instead of 1 for each day I want to see for example a total on each row column of 5 or 6 or however many sales I did on that day instead of just seeing 1 for different times of that day.
Thanks,
HarryB
Solved! Go to Solution.
@Anonymous ,
try this as a table,
Salescount =
VAR _date =
ADDCOLUMNS (
'Time Sales',
"NewDate",
DATEVALUE (
DATE ( YEAR ( 'Time Sales'[Date Time] ), MONTH ( 'Time Sales'[Date Time] ) , DAY ( 'Time Sales'[Date Time] ) )
)
)
VAR _result =
SUMMARIZE ( _date, [NewDate], "Countofsales", COUNT ( 'Time Sales'[Sales] ) )
RETURN
_result
Thanks,
@Anonymous ,
try this as a table,
Salescount =
VAR _date =
ADDCOLUMNS (
'Time Sales',
"NewDate",
DATEVALUE (
DATE ( YEAR ( 'Time Sales'[Date Time] ), MONTH ( 'Time Sales'[Date Time] ) , DAY ( 'Time Sales'[Date Time] ) )
)
)
VAR _result =
SUMMARIZE ( _date, [NewDate], "Countofsales", COUNT ( 'Time Sales'[Sales] ) )
RETURN
_result
Thanks,
@Anonymous ,
Did you tried to convert the data type of the datetime column into date?
Thanks,
Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!
Check out the October 2025 Power BI update to learn about new features.
| User | Count |
|---|---|
| 79 | |
| 38 | |
| 31 | |
| 27 | |
| 27 |