The ultimate Microsoft Fabric, Power BI, Azure AI, and SQL learning event: Join us in Stockholm, September 24-27, 2024.
Save €200 with code MSCUST on top of early bird pricing!
Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started
Hi everybody,
I need some help with a DAX.
I have a table with following columns:
I need to produce a table showing the number of events within 60 minutes from each event with eventtype = 3, grouped by card id, contract id and eventtype.
I can only use DAX - not possible to edit dataset.
Your help will be much appreciated!
Hi @MarcoBeca ,
What time do you want to compare Date time with?
You may consider to create a measure like below:
new_table = summarize(filter(table,eventtype=3&&datediff(date time,time2,MINUTE)<=60),card id, contract id,"count",countrows(table))
Best Regards,
Jay
Hi Jay,
I'll be testing out your solution and I will let you know in the next days. thank you for your support!
Marco
Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.
Check out the August 2024 Power BI update to learn about new features.
User | Count |
---|---|
108 | |
79 | |
72 | |
48 | |
41 |
User | Count |
---|---|
138 | |
108 | |
69 | |
64 | |
57 |