Forum Discussion
benabdillahr
4 years agoFrequent Visitor
DAX ALLEXCEPT function with RELATED table columns as filters
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 formu...
smpa01
4 years agoCommunity Champion
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
benabdillahr
4 years agoFrequent Visitor
Unfortunately, I get the same result ☹️
- smpa014 years agoCommunity Champion
benabdillahr please provide a sample pbix representative of the issue
- benabdillahr4 years agoFrequent Visitor
Hi smpa01 !
Here is exactly what I'm looking for, i just need the date filter to come from the date table instead of the visits table.
- smpa014 years agoCommunity Champion
benabdillahr please check page2