Microsoft is giving away 50,000 FREE Microsoft Certification exam vouchers!
Enter the sweepstakes now!Prepping for a Fabric certification exam? Join us for a live prep session with exam experts to learn how to pass the exam. Register now.
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 2025 Power BI update to learn about new features.
Explore and share Fabric Notebooks to boost Power BI insights in the new community notebooks gallery.
User | Count |
---|---|
72 | |
71 | |
70 | |
42 | |
42 |
User | Count |
---|---|
49 | |
42 | |
29 | |
28 | |
26 |