Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
I'm working on reports with Power BI. I want to get for each hour the number of emails sent. I did the query in SQL Server but I'm having a difficulty translating it to DAX to create a measure.Also I want to get the average number of emails sent by hour.
My query is like below :
select datepart(hour,CreatedDate) as 'hour', count(MailId) as 'count of emails' from [DW PI].[dbo].[Email Fact] group by datepart(hour,CreatedDate) order by count(MailId) desc
I want to get the average of the previous list and put it in a card.
Solved! Go to Solution.
@Anonymous ,
I would suggest you to refer to blogs below:
https://www.sqlbi.com/articles/from-sql-to-dax-projection/
Community Support Team _ Jimmy Tao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
@Anonymous ,
I would suggest you to refer to blogs below:
https://www.sqlbi.com/articles/from-sql-to-dax-projection/
Community Support Team _ Jimmy Tao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Can you upload some sample data and what your desired output should be?
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
111 | |
96 | |
80 | |
68 | |
59 |
User | Count |
---|---|
150 | |
119 | |
104 | |
87 | |
67 |