cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
sakamotothais
Helper III
Helper III

Filter and AllExcept is not a working

Dear Team,

 

I am trying to calculate count rows, that should fetch all record count except the filter in two columns. However this seems to be not working on power BI desktop.

 

I am getting same value though I change in the values in the columns mentioned in the all except clause).

 

Medida Running Total Segments by hour = CALCULATE(Sum(Consulta1[Revenue]),Filter(ALLEXCEPT(Consulta1,Consulta1[BookingDate]),'Consulta1'[BkHour]<=Max('Consulta1'[BkHour])))

 

I selected cancel code value, however no change in the value.

 

Please help.

 

Thanks!

 

Sakamoto

1 REPLY 1
v-huizhn-msft
Microsoft
Microsoft

Hi @sakamotothais,

You create Running Total Segments when BookingDate is same right? If it is, I try to reprodcue using the following sample data.

1.PNG

I create a measure like yours, it works fine.

Running Total for each Year = CALCULATE(SUM(Table1[sale]),FILTER(ALLEXCEPT(Table1,Table1[Year]),Table1[month]<=MAX(Table1[month])))



Create a table visual to display the result, please see the following screenshot.

2.PNG

Could you please post your sample data for further analysis?

Best Regards,
Angelia

Helpful resources

Announcements
Join Arun Ulag at MPPC23

Join Arun Ulag at MPPC23

Get a sneak peek into this year's Power Platform Conference Keynote.

PBI Sept Update Carousel

Power BI September 2023 Update

Take a look at the September 2023 Power BI update to learn more.

Learn Live

Learn Live: Event Series

Join Microsoft Reactor and learn from developers.

Dashboard in a day with date

Exclusive opportunity for Women!

Join us for a free, hands-on Microsoft workshop led by women trainers for women where you will learn how to build a Dashboard in a Day!

Top Solution Authors