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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends September 15. Request your voucher.

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
August Power BI Update Carousel

Power BI Monthly Update - August 2025

Check out the August 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.