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

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.

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
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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