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

Get Fabric Certified for FREE during AI Skills Fest. This week only. Secure your voucher now.

Reply
Anonymous
Not applicable

DAX

Hi guys,

 

I've the following DAX Expression which is giving me an error . I'm trying to find what customers didn't renew subscription in 2018 that renewed in 2016 and 2017.

 

Any help would be most appreciated.

 

 

ListCustomers1 =
VAR T2016 =
CALCULATETABLE (
VALUES ( Renewals[Account_ID] );
Renewals[Renewal Year] = 2016
)
VAR T2017 =
CALCULATETABLE (
VALUES ( Renewals[Account_ID] );
Renewals[Renewal Year] = 2017
)
VAR T2018 =
CALCULATETABLE (
VALUES ( Renewals[Account_ID]);
Renewals[Renewal Year] = 2018
)
RETURN
EXCEPT ( INTERSECT ( T2016; T2017 ); T2018 )
1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi,

 

Its p[rovbably an error with my dataset.

 

Many thanks

View solution in original post

3 REPLIES 3
v-yuta-msft
Community Support
Community Support

Hi Elterrible67,

 

The formula works well on my side. Click create a table then input the formula.

 

Sample data:

1.PNG 

 

Output table:

2.PNG 

 

Regards,

Jimmy Tao

Greg_Deckler
Community Champion
Community Champion

What is the error? Sample data. Please see this post regarding How to Get Your Question Answered Quickly: https://community.powerbi.com/t5/Community-Blog/How-to-Get-Your-Question-Answered-Quickly/ba-p/38490



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...
Anonymous
Not applicable

Hi,

 

Its p[rovbably an error with my dataset.

 

Many thanks

Helpful resources

Announcements
May Power BI Update Carousel

Power BI Monthly Update - May 2026

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

Fabric SQL PBI Data Days

Data Days 2026 coming soon!

Sign up to receive a private message when registration opens and key events begin.

New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.