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.
These measures are the best I can do with the limited amount of info that you've given.
// If you select year-months from the two
// tables, you should never use the YearMonth
// field from 'Date' in the UI. This column
// should be hidden.
[Measure] =
var YearMonthStart =
SELECTEDVALUE( StartDate[StartYearMonth]
var YearMonthEnd =
SELECTEDVALUE( EndDate[EndYearMonth]
var Result =
CALCULATE(
[Measure1],
KEEPFILTERS(
'Date'[YearMonth] >= YearMonthStart ),
KEEPFILTERS(
'Date'[YearMonth] <= YearMonthEnd )
)
RETURN
Result
[Cumulative Registration] =
var MaxVisibleDate = MAX('Date'[Date] )
var Result =
CALCULATE(
CALCULATE(
DISTINCTCOUNT( User[UserID] ),
KEEPFILTERS(
'Date'[YearMonth] >= YearMonthStart ),
KEEPFILTERS(
'Date'[YearMonth] <= YearMonthEnd ),
KEEPFILTERS(
'Date'[Date] <= MaxVisibleDate )
),
ALLSELECTED( 'Date' )
)
RETURN
Result
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 |
---|---|
47 | |
24 | |
20 | |
15 | |
13 |
User | Count |
---|---|
51 | |
46 | |
39 | |
19 | |
19 |