Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.
Hi All
@dvl_ctaul have provide me below expression :-
Solved! Go to Solution.
Yes, try this:
YTD_FLEX =
VAR cyear = SELECTEDVALUE( 'DATE'[Year], YEAR(Now()) )
RETURN
CALCULATE (
[SALES_],
DATESYTD('DATE'[Date]),
'DATE'[Year] = cyear
)
You will need to make sure that you have a year column in your date table to make this work. (This will only consider year, not month)
Yes, try this:
YTD_FLEX =
VAR cyear = SELECTEDVALUE( 'DATE'[Year], YEAR(Now()) )
RETURN
CALCULATE (
[SALES_],
DATESYTD('DATE'[Date]),
'DATE'[Year] = cyear
)
You will need to make sure that you have a year column in your date table to make this work. (This will only consider year, not month)
User | Count |
---|---|
98 | |
90 | |
77 | |
71 | |
64 |
User | Count |
---|---|
114 | |
97 | |
95 | |
68 | |
65 |