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
kozlevchar
Resolver I
Resolver I

YTD Measure Total in wrong Column

I have a unique problem.  I've created almost identical measures below:

 

Consumer Complaints 2018 YTD = CALCULATE(SUM('QA Data'[Total Complaints]) , DATEADD(DATESYTD('Calendar'[Date]), -1,YEAR))

Consumer Complaints 2019 YTD = CALCULATE(SUM('QA Data'[Total Complaints]) , DATEADD(DATESYTD('Calendar'[Date]), 0,YEAR))

 

The 2018 YTD Total has the 2019 numbers in it and the 2019 YTD has NO TOTAL:

 

Cust Complaints.PNG

 

[Total Complaints] are set to Sum on Default Summarization.  Data Type is Whole Number.  I am using a Clanader Table.

 

How do I add filters to this get the correct totals???

 

Any help would be appreciated.

 

Thanks so much,

 

John 

5 REPLIES 5
kozlevchar
Resolver I
Resolver I

Another piece of information...

 

 

 

CC YoY.PNG

 

The 2019 YTD measure is summing on the TOTAL line of thre 2018 YTD measure. 

 

1513+176+155+211+54+0=2,209

v-chuncz-msft
Community Support
Community Support

@kozlevchar ,

 

It seems that there is no data for the last year of calendar table.

Community Support Team _ Sam Zha
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

The last date of my calander table goes to 12/31/2020 so 2019 has all dates in the date column.  Is this what you are referring to?

@kozlevchar what column you have on the rows?



Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!

Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo

If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤


Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.

The columns are Group and Factory (Text)

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.