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

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

Reply
wl2020
Frequent Visitor

Dax formula won't ignore the last dropdown filter

I am working on a report in Power BI where I have 4 filters to sort the data, and for the report to function properly, the revenue formula needs to ignore the last filter (indicator) so that I can make a comparison. I have tried

Profit =
CALCULATE (
    [Caravan] + [PKW] + betrag[sleistung] + betrag[smaterial] + betrag[sumsatz],
    ALL ( table[indicator] )
)

But it is not working. Any idea what could be the problem?

1 ACCEPTED SOLUTION
az38
Community Champion
Community Champion

Hi @wl2020 

try SUMX(), like

Profit =
CALCULATE (
SUMX(table,([Caravan] + [PKW] + betrag[sleistung] + betrag[smaterial] + betrag[sumsatz])),
ALL ( table[indicator] )
)

do not hesitate to give a kudo to useful posts and mark solutions as solution
LinkedIn

View solution in original post

1 REPLY 1
az38
Community Champion
Community Champion

Hi @wl2020 

try SUMX(), like

Profit =
CALCULATE (
SUMX(table,([Caravan] + [PKW] + betrag[sleistung] + betrag[smaterial] + betrag[sumsatz])),
ALL ( table[indicator] )
)

do not hesitate to give a kudo to useful posts and mark solutions as solution
LinkedIn

Helpful resources

Announcements
July 2024 Power BI Update

Power BI Monthly Update - July 2024

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

PBI_Carousel_NL_June

Fabric Community Update - June 2024

Get the latest Fabric updates from Build 2024, key Skills Challenge voucher deadlines, top blogs, forum posts, and product ideas.