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 all,
I have this problem. I have a table with a date fied, called 'CreationDate'. I want to create a view (table) that includes rows with CreationDate of last 12 months and count of them are <=24 (count must be do in tle last 12 months data.....)
How to do this in DAX?
Thanks!
Yes, I have also a field 'CodCli' containing Customer Code. So I want to have a table with last 12 months data but where count for each codcli is ge 24 (this count must be done only on the last 12 months data not on the entire table....). I want ot avoid to build firts a temporarary table....is it possible?
@sabinocivita , nor clear with count part
tyou can have new table calculatetable(Table, filter(Table, Table[CreationDate] >= eomonth(today(),-12)+1 && Table[CreationDate] <= eomonth(today(),0) ) )
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 |
---|---|
110 | |
78 | |
66 | |
52 | |
51 |
User | Count |
---|---|
121 | |
116 | |
77 | |
64 | |
63 |