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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
lisaeugene
Frequent Visitor

Measures not calculating when I use date slicer

I have a transaction table which is the many side of a one-to-many relationship with a dates table. I created a measure called Distinct Order Count in the Transaction table:

 

Distinct Order Count = DISTINCTCOUNT('Txns'[Order Num])

 

It calculates correctly as a single aggregate number, but I need to slice it by year and month to see trends. 

 

So I added 2 slicers - One using the column Year from my Dates table and another using column Month Name. I thought this was okay because I have a one-to-many relationship between Dates and Transactions. But every time I add these slicers, the calculation for 'Distinct Order Count' measure turns to Blank. 

 

Any ideas on why this happens and how I can fix it? 

3 REPLIES 3
v-jiascu-msft
Microsoft Employee
Microsoft Employee

Hi @lisaeugene,

 

Could you mark the proper answer as a solution, please?

 

Best Regards,

Dale

Community Support Team _ Dale
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
v-jiascu-msft
Microsoft Employee
Microsoft Employee

Hi @lisaeugene,

 

One possibility is the relationship is invalid. For instance, one side is Date while the other side is DateTime. Though we can establish a relationship. But it won't work. You can drag the two date columns together to check out. 

 

If this can't solve your issue, please provide a sample of your data.

 

Best Regards,

Dale

Community Support Team _ Dale
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Anonymous
Not applicable

Logically it should work, Can you post some sample date please?

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