March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early bird discount ends December 31.
Register NowBe one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now
Hi everyone.
I've used this formula to calculate ytd value but somehow at March 28th, 2021 it always gave me a spike it shouldn't have.
Can someone plz help me on the formula?
https://drive.google.com/file/d/1ttQDeOPGBzaigUO3b-FGcH4Dio4HuDiY/view?usp=sharing
Solved! Go to Solution.
FYTD =
VAR __to = MAX( Combined[fiscal_BOW] )
VAR __from =
MINX(
CALCULATETABLE(
Combined,
ALL( Combined[fiscal_BOW] ),
Combined[fiscal_BOW] <= __to
),
Combined[fiscal_BOW]
)
RETURN
CALCULATE(
SUM( Combined[Metric_Value] ),
DATESBETWEEN( Combined[fiscal_BOW], __from, __to )
)
Thanks to the great efforts by MS engineers to simplify syntax of DAX! Most beginners are SUCCESSFULLY MISLED to think that they could easily master DAX; but it turns out that the intricacy of the most frequently used RANKX() is still way beyond their comprehension! |
DAX is simple, but NOT EASY! |
FYTD =
VAR __to = MAX( Combined[fiscal_BOW] )
VAR __from =
MINX(
CALCULATETABLE(
Combined,
ALL( Combined[fiscal_BOW] ),
Combined[fiscal_BOW] <= __to
),
Combined[fiscal_BOW]
)
RETURN
CALCULATE(
SUM( Combined[Metric_Value] ),
DATESBETWEEN( Combined[fiscal_BOW], __from, __to )
)
Thanks to the great efforts by MS engineers to simplify syntax of DAX! Most beginners are SUCCESSFULLY MISLED to think that they could easily master DAX; but it turns out that the intricacy of the most frequently used RANKX() is still way beyond their comprehension! |
DAX is simple, but NOT EASY! |
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
User | Count |
---|---|
93 | |
86 | |
77 | |
69 | |
46 |
User | Count |
---|---|
175 | |
138 | |
90 | |
70 | |
59 |