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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
Bokazoit
Continued Contributor
Continued Contributor

Cumulative total fine for month but not for quarters ?

This measure almost works:

 

 

Bogført beløb (Akk. Dags dato) = 

VAR __MaxYT = MAX(DimDato[År])
var __MaxDT = max(DimDato[Dato])
var __TD = EOMONTH(TODAY(),1)
var __Rtotal = 
  CALCULATE([Bogført beløb],
    Filter(
        All(DimDato), 
            DimDato[År] = __MaxYT
                && DimDato[Dato] <= __MaxDT)
)

RETURN
IF (__MaxDT >= __TD, BLANK(), __Rtotal)

 

This gives a cumulative total up til current date and the month ahead is blank. 

Bokazoit_0-1628750474654.png

 

All is nice and ok, but when I changes it to quarters, the current quarter is gone?

Bokazoit_1-1628750623623.png

 

I need it to show the amount of sales up til current date in current month or current quarter. Is that possible if altering the measure?

4 REPLIES 4
amitchandak
Super User
Super User

@Bokazoit , You can put additional filter for

 

Bogført beløb (Akk. Dags dato) = 

VAR __MaxYT = MAX(DimDato[År])
var __MaxDT = max(DimDato[Dato])
var __TD = EOMONTH(TODAY(),1)
var __Rtotal = 
  CALCULATE([Bogført beløb],
    Filter(
        All(DimDato), 
            DimDato[År] = __MaxYT
                && DimDato[Dato] <= __MaxDT  && DimDato[Dato] <=today())
)

RETURN
IF (__MaxDT >= __TD, BLANK(), __Rtotal)

 

// month end

&& DimDato[Dato] <= eomonth(today(),0)

 

 

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube
Bokazoit
Continued Contributor
Continued Contributor

That does not change a thing...

Bokazoit_0-1628754479667.png

 

I need it to show sales up til Q3 which we are currently in now:

Bokazoit_1-1628754549050.png

 

@Bokazoit , can you change to 0 and test

var __TD = EOMONTH(TODAY(),0)

 

 

Can you share sample data and sample output in table format? Or a sample pbix after removing sensitive data.

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube
Bokazoit
Continued Contributor
Continued Contributor

Still the same

 

Bokazoit_0-1628766034829.png

 

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors
Top Kudoed Authors