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

Get Fabric Certified for FREE during AI Skills Fest. This week only. Secure your voucher now.

Reply
AFRATH34
Helper I
Helper I

How can I sum total recurring revenue

Hi @Anonymous 

 

I hope you're doing well. The solution you provided in our previous discussion is working fine. However, I'm having trouble getting the sum of the measure column. Could you please assist me in obtaining the sum of the measure values?

 

Thank you for your support.

Afrath

 

vstephenmsft_2-1721813698959.png

 

1 ACCEPTED SOLUTION

Is the 'total number of month' '19'? (I think it is '17'.)

I have created some measures but I am not sure if my measures are correct.

 

Step 1: I unpivot 'Table' on Power Query Editor.

mickey64_0-1722171688335.png

 

Step 2: I add 2 columns on Power Query Editor.

- 'Flag' column -

mickey64_2-1722171788000.png

- 'Date' column -

mickey64_3-1722171821777.png

 

Step 3: I make 2 measures and make a matrix below.

M_RunningFlag2 = CALCULATE(SUMX('Table','Table'[Flag]*'Table'[Recurring Gross Profit per Period]),FILTER(ALLSELECTED('Calendar'[Date]),'Calendar'[Date]<=MAX('Calendar'[Date])))

 

M_RF2 Sum = SUMX(SUMMARIZE('Calendar','Calendar'[Month and Year],"M_RF2",[M_RunningFlag2]),'Table'[M_RunningFlag2])

 

mickey64_4-1722172048773.png

 

View solution in original post

11 REPLIES 11
AFRATH34
Helper I
Helper I

Hi @mickey64 ,

 

I tried but it's not working, Please refer the screeshot and provide your sugguestion.

Matrix table.png

Thanks,

Afrath

Did you add some relationships?

Are these relationships all active? 

Hi @mickey64,

 

I didn't create any relationships, and even when I try to create them, it's not working.

Please find my PBIX attachment.

https://drive.google.com/file/d/1cF7fRfvWmAmTjsqd_0GzUiwstxrjZ1Ng/view?usp=drive_link 

 

Thanks,

Afrath

I can't download your file.

Hi @mickey64 ,

 

I have given access now, please check it. Sorry for the inconvenience.

 

Thanks,

Afrath

Step 1: I add a relationship below.

mickey64_1-1722148546075.png

 

Step 2: I reset the slicer and make a matrix below.

mickey64_0-1722148525540.png

 

Hi @mickey64 ,

 

Thanks a lot for your support and response but the output is incorrect. My condition is to calculate the recurring profit per period from the billing date to the expiry date, and it should be displayed for every month within this range. For example, if the billing date is 16th June 2024 and the expiry date is 25th October 2025, the total number of months is 19. Therefore, the recurring profit should be calculated as 162 multiplied by 19, resulting in an output of 3078 when the user selects the date range from June 2024 to October 2025.

I think you have understood my requirements. Could you please provide some suggestions or help on how to achieve this calculation in Power BI?

 

Thanks,

Afrath

 

Is the 'total number of month' '19'? (I think it is '17'.)

I have created some measures but I am not sure if my measures are correct.

 

Step 1: I unpivot 'Table' on Power Query Editor.

mickey64_0-1722171688335.png

 

Step 2: I add 2 columns on Power Query Editor.

- 'Flag' column -

mickey64_2-1722171788000.png

- 'Date' column -

mickey64_3-1722171821777.png

 

Step 3: I make 2 measures and make a matrix below.

M_RunningFlag2 = CALCULATE(SUMX('Table','Table'[Flag]*'Table'[Recurring Gross Profit per Period]),FILTER(ALLSELECTED('Calendar'[Date]),'Calendar'[Date]<=MAX('Calendar'[Date])))

 

M_RF2 Sum = SUMX(SUMMARIZE('Calendar','Calendar'[Month and Year],"M_RF2",[M_RunningFlag2]),'Table'[M_RunningFlag2])

 

mickey64_4-1722172048773.png

 

Hi @mickey64 ,

 

Thanks a lot for your valuable response and If we unpivot the 'Table' in Power Query Editor, will the data be duplicated?
Also, please explain how to create the unpivot 'Table' in Power Query Editor.

 

Thanks,

Afrath

Unpivoting will result in duplicate data, but because the SUMMARIZE function creates a table with no duplicate data and performs calculations, there will be no duplicates in the calculation results.

 

- Before Unpivot-

mickey64_0-1722251345817.png

- After Unpivot-

mickey64_1-1722251370638.png

 

mickey64
Super User
Super User

Please change ’Table’ visual into 'Matrix' visual.

Helpful resources

Announcements
May Power BI Update Carousel

Power BI Monthly Update - May 2026

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

Fabric SQL PBI Data Days

Data Days 2026 coming soon!

Sign up to receive a private message when registration opens and key events begin.

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.