Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
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! |
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
| User | Count |
|---|---|
| 41 | |
| 39 | |
| 37 | |
| 29 | |
| 24 |
| User | Count |
|---|---|
| 124 | |
| 107 | |
| 80 | |
| 69 | |
| 67 |