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
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 Employee
Microsoft 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
Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

July 2024 Power BI Update

Power BI Monthly Update - July 2024

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

July Newsletter

Fabric Community Update - July 2024

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