Microsoft Fabric Community Conference 2025, March 31 - April 2, Las Vegas, Nevada. Use code FABINSIDER for a $400 discount.
Register nowThe Power BI DataViz World Championships are on! With four chances to enter, you could win a spot in the LIVE Grand Finale in Las Vegas. Show off your skills.
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!
Check out the February 2025 Power BI update to learn about new features.
User | Count |
---|---|
82 | |
78 | |
52 | |
39 | |
35 |
User | Count |
---|---|
94 | |
79 | |
51 | |
47 | |
47 |