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
swtgoyal
Frequent Visitor

calculate sum using Inside and outside filters

Hello Community,

 

I need help to calculate the count of active policies by passing internal and external filters. My count should change on visual when I pass explicit filters. 

Explicit Filter is column from policy table. For example - Policy Stage (Active, Terminated), Filters values - Active, Terminated or both

 

Here is the calcuation - 

 

Total Policy Count = Auto Insurance + Property Insurance

Auto Insurance = Policy Running total in Date

 
Policy Running total in Date =
CALCULATE(
    SUM('Policy table'[policy Count]),
    FILTER(
        ALLSELECTED('Date table'[Date]),
        ISONORAFTER('Date table'[Date], MAX('Date Table'[Date]), DESC)
    )
Policy Count = 
CALCULATE(
    [Policies Issued] + [Reinstatements Count] - [Terminations Count],
    '[Product] = "Auto Insurance"   )

 

Here I want to interact filter where it should give me the count of policies Active or Terminated or both depending what user selects from explicit filter. Policy Status is column in Policy table. One filter is interacting well where user select what insurance count they want to see - Auto, Property or both

 

Right now, it is not giving me the expected count when I select Policy Status filters. Calculations are coming right only when I select 'All' Policy status filter

 

1 REPLY 1
v-zhangti
Community Support
Community Support

Hi, @swtgoyal 

 

Can you provide sample data for testing? Sensitive information can be removed in advance. What kind of expected results do you expect? You can also show it with pictures or Excel. I look forward to your response.

 

Best Regards,

Community Support Team _Charlotte

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

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!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

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.