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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
LiamPriestmanHH
Frequent Visitor

Re-occurring filter issue after publishing

Hi,

A few hours or days after publishing the filters which I have writtin into the DAX measure on my visuals stop working. For example:

 

 
Spoiler
Cost Avoidance Spend =
SWITCH(SELECTEDVALUE('Current'[Currency]),
"USD",SUMX(FILTER(MI_Data,MI_Data[Ebit?]="Non-Ebit"),MI_Data[Invoice USD]),
"Euro",SUMX(FILTER(MI_Data,MI_Data[Ebit?]="Non-Ebit"),MI_Data[Invoice (EUR)]),
"Local",SUMX(FILTER(MI_Data,MI_Data[Ebit?]="Non-Ebit"),MI_Data[Invoice]))
 
This measure calculates the sum of all invoices when filtering another column for the word "Non-Ebit". When I initially upload it works fine, but later on it will suddenly ignore the condition I have set and show me the total value of all invoices.
 
This seems like a bug in Power BI to me, but I wondered if anyone else had seen it before and found a way around it?
1 ACCEPTED SOLUTION

Hi,

Thank you for the response, my solution ended up being to add a calculated column to the MI_Data table which returns a numeric value based on the [Ebit?] column and filter the measure based on the calculated column instead.

View solution in original post

3 REPLIES 3
v-yanjiang-msft
Community Support
Community Support

Hi @LiamPriestmanHH ,

Try to add ALL function in the filter like this:

Cost Avoidance Spend =
SWITCH (
    SELECTEDVALUE ( 'Current'[Currency] ),
    "USD",
        SUMX (
            FILTER ( ALL ( MI_Data ), MI_Data[Ebit?] = "Non-Ebit" ),
            MI_Data[Invoice USD]
        ),
    "Euro",
        SUMX (
            FILTER ( ALL ( MI_Data ), MI_Data[Ebit?] = "Non-Ebit" ),
            MI_Data[Invoice (EUR)]
        ),
    "Local",
        SUMX (
            FILTER ( ALL ( MI_Data ), MI_Data[Ebit?] = "Non-Ebit" ),
            MI_Data[Invoice]
        )
)

Best Regards,
Community Support Team _ kalyj

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

Hi,

Thank you for the response, my solution ended up being to add a calculated column to the MI_Data table which returns a numeric value based on the [Ebit?] column and filter the measure based on the calculated column instead.

Hi @LiamPriestmanHH ,

Glad your problem has been solved! If you don't have other problems, would you mind accept your reply as solution? Then we are able to close the thread. More people who have the same requirement will find the solution quickly and benefit here. Thank you.

 

Best Regards,
Community Support Team _ kalyj

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.