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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
Anonymous
Not applicable

Aggregated Total based on Filter

This is the filter that I have.

Filter.png

 

 

 

This is my Chart.

Chart.png

 

 

 

 

 

 

 

 

 

 

I just want to get the Aggregated Total of all the Opportunity even when it has no filter or there's a filter.

 

I have done tying this Measures that came from this community, but still no luck.

 

Running Total Opps Generated = 
CALCULATE (
       COUNTROWS(
        FILTER(Opportunities, 
            Opportunities[Current Stage] <> "Marketing Qualified Lead" && 
            Opportunities[Current Stage] <> "Marketing Qualified Lead 10%" && 
            Opportunities[Current Stage] <> "MQL 10%" &&
            Opportunities[Current Stage] <> "Qualified Lead 10%" &&
            Opportunities[Status] = "Open" &&
            Opportunities[ISM Contribution] = "Marketing Generated"
        )
    ),
    FILTER (
        ALL('Calendar'[Date]),
        ISONORAFTER('Calendar'[Date], MAX ('Calendar'[Date]),DESC
    )
), USERELATIONSHIP('Calendar'[Date], Opportunities[Date Created])
)
Running Total Opps Generated = 
CALCULATE (
       COUNTROWS(
        FILTER(Opportunities, 
            Opportunities[Current Stage] <> "Marketing Qualified Lead" && 
            Opportunities[Current Stage] <> "Marketing Qualified Lead 10%" && 
            Opportunities[Current Stage] <> "MQL 10%" &&
            Opportunities[Current Stage] <> "Qualified Lead 10%" &&
            Opportunities[Status] = "Open" &&
            Opportunities[ISM Contribution] = "Marketing Generated"
        )
    ),
    FILTER (
        ALL(Opportunity),
        (Opportunity[Date Created]<= MAX(Opportunity[Date Created])
    )
), USERELATIONSHIP('Calendar'[Date], Opportunities[Date Created])
)

 

 

Any thoughts or workaround about this? 

Help would be greatly appreciated.

Thank you so much!
@amitchandak @parry2k @PhilipTreacy 

1 ACCEPTED SOLUTION
Icey
Community Support
Community Support

Hi @Anonymous ,

 

Please check if this is what you want:

Measure =
CALCULATE (
    COUNTROWS ( 'Table' ),
    FILTER ( ALLSELECTED ( 'Table' ), 'Table'[Month] <= MAX ( 'Calendar'[Month] ) )
)

running total.JPG

 

 

Best regards

Icey

 

If this post helps, then consider Accepting it as the solution to help other members find it faster.

View solution in original post

3 REPLIES 3
Anonymous
Not applicable

Hello @amitchandak this is the sample data.

Screenshot 2021-02-15 230225.png

 

In Oct 2020 there is 1 row.

In Nov 2020 there is 2 row.

In Dec 2020 there is 2 row.

In Jan 2021 there is 1 row.

 

I want to show this kind of Chart that is responsive using a slicer.

Screenshot 2021-02-15 225041.png

 

Thank you.

Icey
Community Support
Community Support

Hi @Anonymous ,

 

Please check if this is what you want:

Measure =
CALCULATE (
    COUNTROWS ( 'Table' ),
    FILTER ( ALLSELECTED ( 'Table' ), 'Table'[Month] <= MAX ( 'Calendar'[Month] ) )
)

running total.JPG

 

 

Best regards

Icey

 

If this post helps, then consider Accepting it as the solution to help other members find it faster.

amitchandak
Super User
Super User

@Anonymous ,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

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

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