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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request 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
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors
Top Kudoed Authors