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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
Saad_Hanif456
Helper I
Helper I

undefined

Dear Experts,

When I am using the following Expression the Dax Result shows in the below table:

Calculate = Sum[Gross Salary], All[Department Name]

 

 

Slicer Year2023 
Slicer MonthJuly 
   
Department NameGross Salary Total Salary
LPG5005700
Chemicals10005700
Sales15005700
Marketing20005700
Finance7005700
Aviation 5700
LNG  5700
Lubricants  5700

 

In my data for the year (Slicer) 2023 and the month (slicer) July do not have the department names of Aviation, LNG and Lubricants still the total salary is coming the same these department as well

How can i filter the department names which is not part in that specific month

 

Desired Result

Slicer Year2023 
Slicer MonthJuly 
   
Department NameGross Salary Total Salary
LPG5005700
Chemicals10005700
Sales15005700
Marketing20005700
Finance7005700

 

 

 

1 ACCEPTED SOLUTION
Ahmedx
Super User
Super User

pls try this file

Screenshot_2.png

View solution in original post

4 REPLIES 4
Ahmedx
Super User
Super User

pls try this file

Screenshot_2.png

Ahmedx
Super User
Super User

pls try this

NewMeasure = IF(SUM('yourtable'[Gross Salary]),[Total Salary])

It is not getting done by this

explain why it didn’t work, maybe you use implicit measures

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

Check out the August 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

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

Top Solution Authors