It sounds like you may be encountering an issue with the context in which your Revenue YTD
measure is being calculated. The TOTALYTD
function should indeed return the year-to-date total, but if it's only returning monthly values, it could be due to how the measure is being used in your report or visual.
Here are a few things to check:
- Visual Context: Ensure that the visual you are using to display the
Revenue YTD
measure is set up to aggregate the data correctly. If you're using a table or matrix visual, make sure that you're not inadvertently filtering the data to show only monthly values. - Date Table: Confirm that your date table is properly marked as a date table in Power BI. This is crucial for time intelligence functions to work correctly.
- Filters: Check if there are any filters applied to your visual or report that might restrict the data to a monthly view instead of a cumulative year-to-date view.
- ALL Function: While you mentioned trying
ALL('Date')
, ensure that it is used correctly within the context of your measure. It should look something like this if you want to ignore filters on the date table:Revenue YTD = TOTALYTD([Revenue], 'Date'[Date], "6-30", ALL('Date'))
If these suggestions don't resolve the issue, you may want to provide more details about how the measure is being used in your report for further troubleshooting.
References: