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

Issue with Date Table and Measures

I am working in POWER BI using Salesforce data and a calendar table in Power Query. This table has dates from 2018-2035 and has been working well for me until this one issue. I am trying to report the percentage of renewed customers, ie customers that bought last year and then again this year. I got this metric with a very simple division measure.

 

Denominator = last year's customers who have a last purchase date of this year

Numerator = all of last years customers

 

This measure pulls correctly when I do not have the purchase date affiliated with my date table, but once I activate the relationship with my date table, it shows 100% (ie I think what it is doing is removing anyone who's last gift date isn't this year, so its saying they all renewed).

 

I have removed all slicers, I do not have any additional filters on the visual card I am using, I have no filters on the page. What am I doing wrong? I am a novice so it might be something obvious. 

7 REPLIES 7
v-prasare
Community Support
Community Support

Thanks for participating in fabric community forum.

v-prasare
Community Support
Community Support

Hi @gdh9999,

As we haven’t heard back from you, we wanted to kindly follow up to check if the solution provided for your issue worked? or let us know if you need any further assistance here?

 

 

Thanks,

Prashanth Are

MS Fabric community support

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly and give Kudos if helped you resolve your query

v-prasare
Community Support
Community Support

Hi @gdh9999,

As we haven’t heard back from you, we wanted to kindly follow up to check if the solution provided for your issue worked? or let us know if you need any further assistance here?

 

 

Thanks,

Prashanth Are

MS Fabric community support

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly and give Kudos if helped you resolve your query

v-prasare
Community Support
Community Support

Hi @gdh9999,

As we haven’t heard back from you, we wanted to kindly follow up to check if the solution provided for your issue worked? or let us know if you need any further assistance here?

 

 

Thanks,

Prashanth Are

MS Fabric community support

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly and give Kudos if helped you resolve your query

Ashish_Mathur
Super User
Super User

Hi,

Try these measures

Total = sum(Data[amount[)

Total in PY = calculate([Total],previousyear(calendar[date]))

N = calculate(distinctcount(Customer[Customer number]),filter(values(Customer[Customer number]),[total in PY]>0))

D = calculate(distinctcount(Customer[Customer number]),filter(calculatetable(values(Customer[Customer number]),previousyear(calendar[date]))),[total]>0))

R = divide([n],[d])

Hope this helps.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/
Thaumaturgist
Helper I
Helper I

Hello, can you please share your DAX code for the division measure and a screenshot of your model and the relationship between the information and Calendar table?

Screenshot of Measure I am using: 

gdh9999_0-1741017766293.png

 

Relationship to Calendar (it is inactive right now because activiating it is what triggers the unexpected result). Last gift date is the same as last purchase date. 

gdh9999_1-1741017935128.png

 

 

Helpful resources

Announcements
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