Forum Discussion

user_guddu10's avatar
user_guddu10
Advocate I
1 year ago
Solved

DAX Error: “Text with Number Comparison” When Filtering with Disconnected Slicer Using TREATAS

Hi community, I'm working on a Benchmark_Asset_Count_Rev measure that should dynamically filter a benchmark dataset (benchmarking_cleaned_combined) based on selections from two disconnected slicers:...
  • user_guddu10's avatar
    user_guddu10
    1 year ago

    Hi Pete, thanks for your input earlier!

    I wanted to share that the issue has been resolved. The main challenge was caused by performance bottlenecks due to complex logic using SUMMARIZE + FILTER and row-level calculations in DAX. These were especially problematic when applying slicers across multiple related tables (e.g. sector, portfolio, client).

    I resolved it by:

    • Precomputing avg_emissions_per_revenue_mil in Power Query, and

    • Rewriting the DAX using FILTER + DISTINCTCOUNT on the cleaned dataset instead of SUMMARIZE.

    • I also handled the scope and multi-select source logic directly inside the measure, using CONTAINS on VALUES(SourceSelector[Source]).

    This dramatically improved performance and allowed scope/source slicers and client-linked filters to work smoothly together.

    Thanks again for your help — I appreciate the engagement!