This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. We're covering it all. You won't want to miss it.
Learn moreLevel up your Power BI skills this month - build one visual each week and tell better stories with data! Get started
So I'm trying to create a YTD measure and this is :
Solved! Go to Solution.
Hi @DouweMeer,
In your first formula, we can only get the max year or the current row by max ( [INVOICE_DT] ). So we should update your formula as below.
Sales this year =
VAR _maxyear =
YEAR ( MAXX ( ALL ( yourTABLE ), [INVOICE_DT] ) )
RETURN
CALCULATE (
SUM ( 'Price_Realisation'[USD Conversion] ),
FILTER ( 'Price_Realisation', 'Price_Realisation'[YTD year] = _maxyear )
)
If any other issue, kindly share your sample data and excepted result to me, if you don't have confidential data? Please upload your file to One Drive and share the link here.
Regards,
Frank
Hi @DouweMeer,
In your first formula, we can only get the max year or the current row by max ( [INVOICE_DT] ). So we should update your formula as below.
Sales this year =
VAR _maxyear =
YEAR ( MAXX ( ALL ( yourTABLE ), [INVOICE_DT] ) )
RETURN
CALCULATE (
SUM ( 'Price_Realisation'[USD Conversion] ),
FILTER ( 'Price_Realisation', 'Price_Realisation'[YTD year] = _maxyear )
)
If any other issue, kindly share your sample data and excepted result to me, if you don't have confidential data? Please upload your file to One Drive and share the link here.
Regards,
Frank
That actually looks very logical. I notice more and more that even though DAX looks a lot like Excel, it isn't Excel :). Thanks.
Check out the April 2026 Power BI update to learn about new features.
Sign up to receive a private message when registration opens and key events begin.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
| User | Count |
|---|---|
| 35 | |
| 32 | |
| 26 | |
| 21 | |
| 18 |
| User | Count |
|---|---|
| 68 | |
| 37 | |
| 32 | |
| 25 | |
| 23 |