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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

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
Employee
Employee

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
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.