The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends September 15. Request your voucher.
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?
Hi @lisaeugene,
Could you mark the proper answer as a solution, please?
Best Regards,
Dale
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
Logically it should work, Can you post some sample date please?
User | Count |
---|---|
65 | |
62 | |
60 | |
53 | |
28 |
User | Count |
---|---|
181 | |
82 | |
67 | |
48 | |
44 |