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
avendanof
Helper I
Helper I

sort by column and all filter

I have a field in a date table which has the names of the months DimFechas[NombreMes] and another column which has the numbers of the months DimFechas[numeromes]. The column DimFechas[NombreMes] is sorted by the column  DimFechas[numeromes] Then I have a formula which uses a filer all like this one:  total meses = CALCULATE([Total ventas];ALL(DimFechas[NombreMes]))

[TotalVentas] is a messure with the total sales

I´ve expeted that this formula summarizes year by year for all the months the same number, that is the total sales like this (see total meses):

Captura1.PNG

 

But what is happening is this:

 

Captura2.PNG

 

So it seems that the sort by column is overriding the all filter in the formula.

 

Is there a way to fix this instead of using a field with the month number instead of the month name?

2 REPLIES 2
v-xjiin-msft
Solution Sage
Solution Sage

Hi @avendanof,

 

Your total meses Measure should work. Please refer to my sample:

 

Source TableSource Table3.PNG

 

According to your second screenshot, it seems like there exists a blank space in the column name "NombreMes" in Matrix as "Nombre Mes". Please check if you are using the right column.

 

Btw, with only screenshots it helps little. So if it is possible, please share us your pbix file with One Drive or Google Drive. So that I can dig deeper and make some tests.

 

Thanks,
Xi Jin.

 

Hi, I´m sending you an example. You may see that the formula "Total Month" has an All() filter that is not working, unless you take out the "sort by column" applied to the column "Nombre mes" in the table DimFechas using the field "numero mes" from the same table to sort.

So I think this is not working properly.

 

Example file

 

Let me know if you was able to download the file.

 

Thanks a lot.

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.