Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
Hi all,
I'm using SampleSupterstore dataset and I'm trying to calculate orders only placed in 2016 (Order Date in 2016). I figured out that I had to use the YEAR function as a filter when using the CALCULATE function; however, when I try to get more granular and filter year 2016 in the months of January and February combined, I receive blank values. Does anyone know why this happens? P.S. I'm also using a Date table as well. Here is the function I tried that did not work:
Solved! Go to Solution.
Hi again,
Now that you are using && you are trying to apply the filters simultaniously the sign for or is ||
Alternatively you can just use OR()
So try this:
CALCULATE([TotalSales],YEAR('Date'[Date]) = 2016,'Date'[Month Name] = "January" || 'Date'[Month Name] = "February")
I hope this post helps to solve your issue and if it does consider accepting it as a solution and giving the post a thumbs up!
Proud to be a Super User!
Hi again,
Now that you are using && you are trying to apply the filters simultaniously the sign for or is ||
Alternatively you can just use OR()
So try this:
CALCULATE([TotalSales],YEAR('Date'[Date]) = 2016,'Date'[Month Name] = "January" || 'Date'[Month Name] = "February")
I hope this post helps to solve your issue and if it does consider accepting it as a solution and giving the post a thumbs up!
Proud to be a Super User!
Check out the November 2025 Power BI update to learn about new features.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
| User | Count |
|---|---|
| 9 | |
| 9 | |
| 8 | |
| 6 | |
| 6 |
| User | Count |
|---|---|
| 23 | |
| 20 | |
| 18 | |
| 14 | |
| 14 |