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
Stroop
Frequent Visitor

totalqtd not returning values for last week in the quarter

Hi

 

I have a formula which calculates the cumulative QTD target figures like so

 

Cumulative Q BPD Target = TOTALQTD('Targets'[target],'Full Date Table'[Date])

 

where full date table is a calendar table.

 

In my table showing week commencing as the rows and cumulative target as the values it is correct for every week except WC 26th March where it is blank. 

 

I am assuming this is down to the fact WC 26th March finishes on 1st April and therefore there is a one day overlap between the end of Q1 and the beginning of what Power BI thinks is Q2 but I don't know how to fix this.

 

Any ideas?

 

4 REPLIES 4
Greg_Deckler
Super User
Super User

Can you supply sample data to recreate? Please see this post regarding How to Get Your Question Answered Quickly: https://community.powerbi.com/t5/Community-Blog/How-to-Get-Your-Question-Answered-Quickly/ba-p/38490

 

Also, you might be able to use my Quick Measures here: https://community.powerbi.com/t5/Quick-Measures-Gallery/First-Last-Working-Days/m-p/391545


@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
The Definitive Guide to Power Query (M)

DAX is easy, CALCULATE makes DAX hard...

Sure.

 

I have re-created the problem with sample data on a simpler dataset. Can't use my actua; data.

 

Sample data.PNG

 

I also have a calendar table which joins to this using WC = date.

 

Then use the formula for totalqtd to create a cumulative target for each quarter. As I say though it works for every week for Q1 except WC 26th March where it doesn't appear in the table. 

 

I still think t's down to power bi not understanding this week is still Q1 despite the Sunday being 1st March

Can you paste that as text? Right click, Copy Table.


@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
The Definitive Guide to Power Query (M)

DAX is easy, CALCULATE makes DAX hard...

YearQuarterMonthWeekWCTarget

201811101/01/2018100
201811208/01/2018200
201811315/01/2018200
201811422/01/2018200
201811529/01/2018300
201812605/02/2018300
201812712/02/2018300
201812819/02/2018300
201812926/02/2018300
2018131005/03/2018100
2018131112/03/2018200
2018131219/03/2018200
2018131326/03/2018200
201824102/04/2018300
201824209/04/2018300
201824316/04/2018300
201824423/04/2018300
201824530/04/2018300
201825607/05/2018100
201825714/05/2018200
201825821/05/2018200
201825928/05/2018200
2018261004/06/2018300
2018261111/06/2018300
2018261218/06/2018300
2018261325/06/2018300
201837102/07/2018300
201837209/07/2018100
201837316/07/2018200
201837423/07/2018200
201837530/07/2018200
201838606/08/2018300
201838713/08/2018300
201838820/08/2018300
201838927/08/2018300
2018391003/09/2018300
2018391110/09/2018100
2018391217/09/2018200
2018391324/09/2018200
2018410101/10/2018200
2018410208/10/2018300
2018410315/10/2018300
2018410422/10/2018300
2018410529/10/2018300
2018411605/11/2018300
2018411712/11/2018100
2018411819/11/2018200
2018411926/11/2018200
20184121003/12/2018200
20184121110/12/2018300
20184121217/12/2018300
20184121324/12/2018300
201811101/01/2018300
201811208/01/2018300
201811315/01/2018100
201811422/01/2018200
201811529/01/2018200
201812605/02/2018200
201812712/02/2018300
201812819/02/2018300
201812926/02/2018300
2018131005/03/2018300
2018131112/03/2018300
2018131219/03/2018100
2018131326/03/2018200
201824102/04/2018200
201824209/04/2018200
201824316/04/2018300
201824423/04/2018300
201824530/04/2018300
201825607/05/2018300
201825714/05/2018300
201825821/05/2018100
201825928/05/2018200
2018261004/06/2018200
2018261111/06/2018200
2018261218/06/2018300
2018261325/06/2018300
201837102/07/2018300
201837209/07/2018300
201837316/07/2018300
201837423/07/2018100
201837530/07/2018200
201838606/08/2018200
201838713/08/2018200
201838820/08/2018300
201838927/08/2018300
2018391003/09/2018300
2018391110/09/2018300
2018391217/09/2018300
2018391324/09/2018100
2018410101/10/2018200
2018410208/10/2018200
2018410315/10/2018200
2018410422/10/2018300
2018410529/10/2018300
2018411605/11/2018300
2018411712/11/2018300
2018411819/11/2018300
2018411926/11/2018100
20184121003/12/2018200
20184121110/12/2018200
20184121217/12/2018200
20184121324/12/2018300

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.