Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
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.
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
110 | |
97 | |
78 | |
63 | |
55 |
User | Count |
---|---|
143 | |
109 | |
89 | |
84 | |
66 |