Forum Discussion
Filtercontext with date relation
- 2 months ago
Hey, s_schultes ,
Your flag won't be filtered by department, and will send the result to every single department you have. This probably causes the overhelm of Direct Query.
Same also for customers that don't have a revenue or something:
You don't even need the flag. You can just build something like this, which will automatically not display anybody that doesn't have revenue or w/e you're after.
Neukunden Netto = CALCULATE( SUM(FactSales[geknetto]), USERELATIONSHIP( DimDate[Date], DimKunde[Anlagedatum] ) )
If you need to display customers by department, you can also do sometheing like this:Neukunde Flag Updated = CALCULATE( COUNTROWS(DimKunde), USERELATIONSHIP( DimDate[Date], DimKunde[Anlagedatum] ), TREATAS( VALUES(FactSales[KundeId]), DimKunde[Id]) )
I changed the structure. I made two separates columns in my DimKunde table (firstdatewithorder with id and department). Works way better now, even with userelationship. Thanks for your support, guess the size of the facttable breaks down the measure the whole time.
- v-achippa1 month agoCommunity Support
Hi s_schultes,
Thank you for the response and confirming that the issue is resolved now. Thank you for being part of Microsoft fabric community forum.
Thanks and regards,
Anjan Kumar Chippa