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

Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!

Reply
digant
Helper I
Helper I

TOTALYTD is not summing up

Hi,

 

For some reason TOTALYTD doen't seem to SUM up value correctly. I have created following steps

 

1) Created dimension Calender table 

2) Actual data has date field in dd/mm/yyyy format

3) Created relationship between those tables

4) Defined measures as  below

 

SumOfGrossRevenue = SUM(EnhacedHeracles[Gross Revnue])

YTDSumOfRevenue = TOTALYTD([SumOfGrossRevenue],'Calendar'[Date])

 

5) YTDSumOfRevenue seems to repeat SumOfGrossRevenue rather than performing YTD

Table DefinitionTable Definition

Can someone please help here what seems to be issue ?

 

regards

 

Digant

 

1 ACCEPTED SOLUTION

Hi,

 

Apology for delyed response. I manage to sort out issue. Due to date filter, I had to use below formulae.

 

YTD-A-Book = CALCULATE(TOTALYTD(SUM(EnhacedHeracles[Gross Revnue]),'Calendar'[Date],ALL('Calendar'),"06/30"),EnhacedHeracles[book]="A")

 

MTD-A-Book = CALCULATE(TOTALMTD(SUM(EnhacedHeracles[Gross Revnue]),'Calendar'[Date],ALL('Calendar')),EnhacedHeracles[book]="A")

 

 

Regards,

 

Digant

View solution in original post

2 REPLIES 2
v-ljerr-msft
Employee
Employee

Hi @digant,

YTDSumOfRevenue seems to repeat SumOfGrossRevenue rather than performing YTD

Could you be more precisely with the issues by posting some sample data with the current result and the expected result? It's better that you can also share a sample pbix file which can reproduce the issue. You can upload it to OneDrive or Dropbox and post the link here. Do mask sensitive data before uploading. Smiley Happy

 

Regards

Hi,

 

Apology for delyed response. I manage to sort out issue. Due to date filter, I had to use below formulae.

 

YTD-A-Book = CALCULATE(TOTALYTD(SUM(EnhacedHeracles[Gross Revnue]),'Calendar'[Date],ALL('Calendar'),"06/30"),EnhacedHeracles[book]="A")

 

MTD-A-Book = CALCULATE(TOTALMTD(SUM(EnhacedHeracles[Gross Revnue]),'Calendar'[Date],ALL('Calendar')),EnhacedHeracles[book]="A")

 

 

Regards,

 

Digant

Helpful resources

Announcements
April AMA free

Microsoft Fabric AMA Livestream

Join us Tuesday, April 09, 9:00 – 10:00 AM PST for a live, expert-led Q&A session on all things Microsoft Fabric!

March Fabric Community Update

Fabric Community Update - March 2024

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