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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
Easley06
Helper II
Helper II

Filter out the monthyear

Hi,

 

i have visual for this 

Easley06_0-1650599102172.png

the answer should be this 

Easley06_1-1650599539156.png

 

 

how to remove the filter in the visual using in the measure because im getting the wrong answer 

 

Measures:

MonthYear = [Short Month] & " " & [Year]
Short Month = FORMAT(mv_fact_sales_aggr[create_month_year],"MMM")
Year = year(mv_fact_sales_aggr[create_month_year])
Month Year Sort = FORMAT([date], "YYYYMM")
 
 
SOM = divide(sum(mv_fact_sales_aggr[Wfactor Sales]),CALCULATE(sum(mv_fact_sales_aggr[Wfactor Sales]),ALLSELECTED(mv_fact_sales_aggr[company],mv_fact_sales_aggr[brand_family_name],mv_fact_sales_aggr[brand_name],mv_fact_sales_aggr[product_name],mv_fact_sales_aggr[volpricetier],mv_fact_sales_aggr[regional],mv_fact_sales_aggr[zone],mv_fact_sales_aggr[area],mv_fact_sales_aggr[Year],mv_fact_sales_aggr[price_segment],mv_fact_sales_aggr[Weighting Factors],mv_fact_sales_aggr[segment],mv_fact_sales_aggr[product_classifier]),ALL(mv_fact_sales_aggr[brand_family_name]
,mv_fact_sales_aggr[create_month_year],mv_fact_sales_aggr[Month Year Sort],mv_fact_sales_aggr[create_month_year],mv_fact_sales_aggr[Short Month],mv_fact_sales_aggr[Year]
,mv_fact_sales_aggr[date])),0)*100
 
1 ACCEPTED SOLUTION

Hi @Easley06 ,

 

You can use REMOVERFILTERS() to remove the filter you want. And some measures like this :

 

DIVIDE (
    SUM ( mv_fact_sales_aggr[Wfactor Sales] ),
    CALCULATE (
        SUM ( mv_fact_sales_aggr[Wfactor Sales] ),
        REMOVEFILTERS ( mv_fact_sales_aggr[MonthYear] )
    )
)

 

Best Regards

Community Support Team _ chenwu zhu

 

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

View solution in original post

3 REPLIES 3
amitchandak
Super User
Super User

@Easley06 , which filter you want to remove and what you want to display ?

 

Always prefer a separate date table and other dimension tables. you can use all('DAte') and it will remove date filter and other dimensions filter will remain 

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

the filter for Monthyear 

Hi @Easley06 ,

 

You can use REMOVERFILTERS() to remove the filter you want. And some measures like this :

 

DIVIDE (
    SUM ( mv_fact_sales_aggr[Wfactor Sales] ),
    CALCULATE (
        SUM ( mv_fact_sales_aggr[Wfactor Sales] ),
        REMOVEFILTERS ( mv_fact_sales_aggr[MonthYear] )
    )
)

 

Best Regards

Community Support Team _ chenwu zhu

 

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

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

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.