This is best Fabric, Power BI, SQL and AI community event. How do we know? The last event sold out! Save €200 with code FABCMTY200.
Register nowA new Data Days event is coming soon! This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. Don't miss out.
The following expression give the Total salary of all month or only May ? Please help me.....
CALCULATE([TotalSalary],FILTER(ALL(FactSalary[Month]), FactSalary[Month]="May"))
Solved! Go to Solution.
May only
Hello arifulice
I'm not an expert on DAX but I found a good explanation here:
https://community.powerbi.com/t5/Desktop/Filter-and-Allexcept/td-p/76403
the way I understand:
CALCULATE([TotalSalary],FILTER(ALL(FactSalary[Month]), FactSalary[Month]="May"))
the filter iterates only the values of the [Month] column (you will see May only). It is the same as:
CALCULATE([TotalSalary],FactSalary[Month]="May"))
in order to remove all the filters from other columns, you change to:
CALCULATE([TotalSalary],FILTER(ALL(FactSalary), FactSalary[Month]="May"))
where the only difference is that the filter iterates the entire FactSalary table and not only the values of the Month column (you see all months)
May only
Hello, pawel1
Although I have understand the problem but further you briefly describe the solution .(Why only May will be the answer Although the ALL(FactSalary[Month]) remaining?
Hello arifulice
I'm not an expert on DAX but I found a good explanation here:
https://community.powerbi.com/t5/Desktop/Filter-and-Allexcept/td-p/76403
the way I understand:
CALCULATE([TotalSalary],FILTER(ALL(FactSalary[Month]), FactSalary[Month]="May"))
the filter iterates only the values of the [Month] column (you will see May only). It is the same as:
CALCULATE([TotalSalary],FactSalary[Month]="May"))
in order to remove all the filters from other columns, you change to:
CALCULATE([TotalSalary],FILTER(ALL(FactSalary), FactSalary[Month]="May"))
where the only difference is that the filter iterates the entire FactSalary table and not only the values of the Month column (you see all months)
Hello Pawel1
Thank you so much. I have understand the solution, Thats you described in your post...
Check out the May 2026 Power BI update to learn about new features.
Sign up to receive a private message when registration opens and key events begin.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
| User | Count |
|---|---|
| 31 | |
| 26 | |
| 23 | |
| 22 | |
| 13 |
| User | Count |
|---|---|
| 61 | |
| 47 | |
| 27 | |
| 23 | |
| 18 |