The ultimate Microsoft Fabric, Power BI, Azure AI, and SQL learning event! Join us in Stockholm, Sweden from September 24-27, 2024.
2-for-1 sale on June 20 only!
Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started
I. QUESTION
I am looking for a DAX formula that return me the number of ID which appear in 2,3,4......consecutive months
ID Month
A1 1/1/2018
A2 1/3/2018
A3 1/15/2018
A4 2/1/2018
A1 2/4/2018
A5 2/14/2018
A3 2/15/2018
A1 3/1/2018
A4 1/3/2018
II. RESULT
So the result I want as belows:
1. The number of ID which appear in 2 consecutive months: 1 & 2/2018 is 2 (A1 & A3)
ID Month
A1 1/1/2018
A3 1/15/2018
A1 2/4/2018
A3 2/15/2018
2. The number of ID which appear in 3 consecutive months: 1, 2 & 3/2018 is 1 (A1)
ID Month
A1 1/1/2018
A1 2/4/2018
A1 3/1/2018
You may check if the following post helps.
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 June 2024 Power BI update to learn about new features.
User | Count |
---|---|
99 | |
93 | |
81 | |
63 | |
56 |
User | Count |
---|---|
248 | |
124 | |
111 | |
78 | |
78 |