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

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

Reply
DANinja
Regular Visitor

Time intelligence problems

Hi,

New to this forum but been scrolling through questions and learned a lot but haven't found a solution to my problems.

 

I need a 12 Month sum of sales beginning LAST month...the solution I've used is

 

OppCreated R12 = CALCULATE(sum(FactOpportunity[Amount]),FactOpportunity[OppSourceSystemName]="CRMSE",FactOpportunity[Intercompany]<> "Intercompany",DIMSalesprocess[EU Sales Process]<>"Lost",DIMSalesType[Nordic Salestype]<>"Migration",DIMSalesType[Nordic Salestype]<>"Renewal",DIMOrganization[Category]="KAM",'FactOpportunity'[CustomerOrgNr]<> "5561234567",DATESINPERIOD(DIMDateCreated[Date],EOMONTH(TODAY(),0),-12,MONTH))

 

Inn the end that means that  you're comparing 11 months up until the very end of the current month and I want to compare 12 full months ie I need to calculate from the last full month and 12 months backwards.

 

My other problem is similar where I need to find out how many renewal contracts I got for the next month. 

 

Renewals  = Calculate(sum(FactOpportunity[Amount]),'DIMSalesType'[Nordic Salestype]="Renewal",FactOpportunity[Stage]<> "Felaktig",FactOpportunity[Stage]<> "Avtal förlorat",FactOpportunity[Intercompany] <> "Intercompany",DIMOrganization[Category] = "KAM",DIMCountry[Country] = "Sweden",DATESINPERIOD(DIMDateClosed[Date],EOMONTH(TODAY(),0),1,MONTH))
The formula above also gives me the last day of this month renewal as well which wasn't intended...I just need for ex December renewals without the 30th of November.

 

Been trying to google a solution but now I have to ask the expertise in this forum.

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @DANinja ,

I'm a little confused about your needs, Could you please explain them further? It would be good to provide a screenshot of the results you are expecting and desensitized example data.

Thanks for your efforts & time in advance.

 

Best regards,
Community Support Team_ Binbin Yu

View solution in original post

2 REPLIES 2
Anonymous
Not applicable

Hi @DANinja ,

I'm a little confused about your needs, Could you please explain them further? It would be good to provide a screenshot of the results you are expecting and desensitized example data.

Thanks for your efforts & time in advance.

 

Best regards,
Community Support Team_ Binbin Yu

Hi 

You can remove my post since I managed to solve it myself after some additional googling.

Rgs,

J

Helpful resources

Announcements
October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

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 Kudoed Authors