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

Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now

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
Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

Check out the March 2026 Power BI update to learn about new features.