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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

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
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

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