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.
Solved! Go to Solution.
You may refer to the following DAX that creates a new table.
Table = ADDCOLUMNS ( DISTINCT ( SELECTCOLUMNS ( CALENDARAUTO (), "year", YEAR ( [Date] ), "month", MONTH ( [Date] ) ) ), "count", CALCULATE ( DISTINCTCOUNT ( Table1[user id] ), FILTER ( Table1, Table1[start date] < DATE ( [year], [month] + 1, 1 ) && ( Table1[end date] >= DATE ( [year], [month], 1 ) || ISBLANK ( Table1[end date] ) ) ) ) )
You may refer to the following DAX that creates a new table.
Table = ADDCOLUMNS ( DISTINCT ( SELECTCOLUMNS ( CALENDARAUTO (), "year", YEAR ( [Date] ), "month", MONTH ( [Date] ) ) ), "count", CALCULATE ( DISTINCTCOUNT ( Table1[user id] ), FILTER ( Table1, Table1[start date] < DATE ( [year], [month] + 1, 1 ) && ( Table1[end date] >= DATE ( [year], [month], 1 ) || ISBLANK ( Table1[end date] ) ) ) ) )
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 |
---|---|
107 | |
106 | |
87 | |
73 | |
66 |
User | Count |
---|---|
124 | |
113 | |
98 | |
81 | |
72 |