Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and a 50 percent discount on exams.
Get startedEarn 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 |
---|---|
91 | |
77 | |
71 | |
64 | |
58 |
User | Count |
---|---|
106 | |
97 | |
76 | |
63 | |
60 |