Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.
Hi All,
I am trying to calculate the distinct count of a field "Visits" but only need it to be filtreable by a "Date" field from another table.
I used the ALLEXCEPT funtion but the filter and formula only work when the "Date" field from the same table, when I use the "Date" field from the "Date" table, it doesn't work.
Same Table Formula:
Thanks,
Hi @benabdillahr ,
According to your description, here's my solution.
Best Regards,
Community Support Team _ kalyj
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
@benabdillahr may be try this
CALCULATE( DISTINCTCOUNT(Visits[Visits: Visits Id]),
ALL('Date'),VALUES('Date'[Date]), ALL(Visits[Category]))
replicated on a small scale, pbix is attached
Unfortunately, I get the same result ☹️
@benabdillahr please provide a sample pbix representative of the issue
@benabdillahr please check page2
@benabdillahr did you have a chance to look into the solution I provided?
@benabdillahr can you test out if this works for you
CALCULATE( DISTINCTCOUNT(Visits[Visits: Visits Id]),
Thank you @smpa01 for you response!
I tried your formula, the date filter from the related table is now working but it calculates the distinct count of visits by category. I want my measure to ignore the categories in order to have the same value "243" repeated for each category since I'm using it as a denominator for another measure.
Thanks!