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
justnoob08
Frequent Visitor

Exclude Month on Measure calculation based on Slicer and Boolean

Hi, I have a matrix table showing the months and is connected to date table.

 

I have a measure that computes the score of a user and at times I need to exclude "waive" a month or 2 from the computation.

I have a separate table with the User names, waive status, monthnomber to use as reference for my calculation.

 

MyUser  IsWaivedMonthNo
User1TRUE4
User2TRUE4
User3TRUE4
User1TRUE3

 

I used 2 other measure for the lookup

Auditor = Lookupvalue('Waived'[isWaived], 'Waived'[MyUser], SelectedValue ('MainUsersDB'[Name])

WaivedMonth =Lookupvalue('Waived'[MonthNo], 'Waived'[MyUser], SelectedValue ('MainUsersDB'[Name])

 

I have below initial If for exclusion, It works fine if the exclusion is for 1 month (User2 and User3) I can't figure out how if there are 2 months that I need to exclude. Thank you for the help!

Score = IF([Auditor]=TRUE() && SELECTEDVALUE('Calendar'[Date].[MonthNo])=[WaivedMonth],"Waived",...)

3 REPLIES 3
amitchandak
Super User
Super User

@justnoob08 ,The information you have provided is not making the problem clear to me. Can you please explain with an example?
Refer example how to exclude the selected values - https://www.youtube.com/watch?v=lOEW-YUrAbE
Appreciate your Kudos.

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

@amitchandak just checking back if do you have any idea if this is possible? Thank you so much

Hi @amitchandak. It's throwing an error that multiple values was supplied where a single value was expected when I filter "User1" since it returns 2 values "4" and "3" when I used the lookup and assigned it to the measure [WaivedMonth], I would like to achieve below.

Slicer selected: User1

 

Matrix

Date    Score

January    5

February   3

March   Waived
April   Waived

 

 

Hope this is clear, thank you for responding.

Helpful resources

Announcements
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!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

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