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

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes! Register now.

Reply
trevordunham
Resolver I
Resolver I

Create table that filters another table by multiple months

I need a new table that brings over some columns from my initial table but filters it for a few months.

 

I got it to work with only 1 month like this:

 

Current Year Table = CALCULATETABLE(SUMMARIZE('Survey Data','Survey Data'[ResponseId],'Survey Data'[Combined NPS],'Survey Data'[CES Promoters],'Survey Data'[CES Detractors],'Survey Data'[CES Total],'Survey Data'[EndDate]),MONTH('Survey Data'[EndDate])=1)
 
I tried to just add ,MONTH('Survey Data'[EndDate])=2) to the end but that seems to make it an AND statement rather than OR. Any quick fix for this?
1 ACCEPTED SOLUTION
Dangar332
Super User
Super User

Hi, @trevordunham 

try below it might work

Current Year Table = 
CALCULATETABLE(SUMMARIZE(
'Survey Data',
'Survey Data'[ResponseId],
'Survey Data'[Combined NPS],
'Survey Data'[CES Promoters],
'Survey Data'[CES Detractors],
'Survey Data'[CES Total],
'Survey Data'[EndDate]),
MONTH('Survey Data'[EndDate])=1 , MONTH('Survey Data'[EndDate])=2)

you can use or( || ) if you needed instead of  , (and(&))

View solution in original post

2 REPLIES 2
Dangar332
Super User
Super User

Hi, @trevordunham 

try below it might work

Current Year Table = 
CALCULATETABLE(SUMMARIZE(
'Survey Data',
'Survey Data'[ResponseId],
'Survey Data'[Combined NPS],
'Survey Data'[CES Promoters],
'Survey Data'[CES Detractors],
'Survey Data'[CES Total],
'Survey Data'[EndDate]),
MONTH('Survey Data'[EndDate])=1 , MONTH('Survey Data'[EndDate])=2)

you can use or( || ) if you needed instead of  , (and(&))

Using || in place of OR worked, thank you.

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 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
Top Kudoed Authors