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

See when key Fabric features will launch and what’s already live, all in one place and always up to date. Explore the new Fabric roadmap

Reply
Sean_DG
New Member

Count of Accounts with any revenue in previous months

Hello, I'm trying to create a measure that counts the number of accounts that have revenue at any point in the past. I've created a cumulative revenue formula and the entire report is filter based on a date table fiscal year age of 0 for current year. : 

 

Cumulative Converted Total Price (USD) =
CALCULATE(
    SUM('Order Item'[Converted TotalPrice (USD)]),
    FILTER(
        ALLSELECTED('Dates'),
        'Dates'[Date] <= MAX('Dates'[Date])
    )
)
but when trying to use it as a filter, it still is the same as if I was just filtering on totalprice >0 
 
Accounts with Past Revenue =
CALCULATE(
    COUNT('Account'[Id]),
    filter('Order Item','Order Item'[Cumulative Converted Total Price (USD)]>0))
 
Sean_DG_2-1721771735389.png

 

My goal is to have the accounts stack, just like the cumulative totalprice. So if an account had revenue in p1 it would count as 1, but if there was no revenue in p2, it would still count as 1 since there was revenue in a previous period in the year.

 

Appreciate the help!

 

Sean

 
1 REPLY 1
Anonymous
Not applicable

Hi @Sean_DG 

 

Could you please provide your raw data in your tables (exclude sensitive data) with Text format and your expected result with backend logic and special examples? It would be helpful to find out the solution. You can refer the following links to share the required info:

How to provide sample data in the Power BI Forum

How to Get Your Question Answered Quickly

And It is better if you can share a simplified pbix file. You can refer the following link to upload the file to the community. Thank you.

How to upload PBI in Community

 

 

Best Regards

Zhengdong Xu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
May PBI 25 Carousel

Power BI Monthly Update - May 2025

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

May 2025 Monthly Update

Fabric Community Update - May 2025

Find out what's new and trending in the Fabric community.