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

Join the FabCon + SQLCon recap series. Up next: Power BI, Real-Time Intelligence, IQ and AI, and Data Factory take center stage. All sessions are available on-demand after the live show. 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
April Power BI Update Carousel

Power BI Monthly Update - April 2026

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

New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

FabCon and SQLCon Highlights Carousel

FabCon &SQLCon Highlights

Experience the highlights from FabCon & SQLCon, available live and on-demand starting April 14th.