Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Score big with last-minute savings on the final tickets to FabCon Vienna. Secure your discount

Reply
paulsmith
New Member

When calculating previous FYTD i get the full year total

I have a table with records of calls to our company and it's linked directly to the dates table, that has dates from 2017 up until the end of this financial year (31/3/24)
 
When using this measure it in a chart it gives the correct information but when it's in a Card it gives the entire last financial years total.
Calls FYTD ly =  CALCULATE 
     COUNT( Calls[Incident] ),    
     SAMEPERIODLASTYEAR( DATESYTD( DatesTable[CalDate] , "31/3")) 
NB: The card has no filters and the chart as a filter to CalDate to show dates in this financial year.
To investigate i altered the measure to show the MIN & then the MAX date returned:
MIN comes back as 01/04/2022 which is correct 
MAX comes back as 31/3/2023 which is NOT correct (is should today - 1 year ie: 25/5/2022)
 
If i do a COUNT of the DatesTable[CalDate] (ie the number of days selected it returns 365 (a whole year).
 
In this graphic you can see the 14k in green is the total for last FY yet the same measure gives the correct data in the tooltip. 
paulsmith_0-1685010656211.png

 

Any help would be appreciated as this is really bugging me as to why it's selecting the whole year!

1 REPLY 1
Anonymous
Not applicable

Hi @paulsmith ,

Normally card visual's row context should match with whole table, they may affect the time intelligence function usages.

I'd like to suggest you changed to use date function which support more complex customize to manually define the calculation ranges.

Time Intelligence "The Hard Way" (TITHW)  

Regards,
Xiaoxin Sheng

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

Check out the August 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.