Forum Discussion

Tom_Herbet's avatar
Tom_Herbet
Regular Visitor
1 year ago
Solved

How to Aggregate Values from a Dimension Table in a Donut Chart with Filter Context

Hi everyone, I'm facing a modeling issue I really need your help. My Data Model: fact_table: Contains transactions with columns like Dealer, AREA_NAME, Customer, Date, ITEM_NO, etc. Product_t...
  • v-karpurapud's avatar
    v-karpurapud
    1 year ago

    Hi Tom_Herbet 

    Thank you for your thoughtful feedback. I'm glad the explanation around filter context and the use of TREATAS() helped clarify the issue.

     

    To ensure  model and visuals are functioning correctly, please verify that the columns used in TREATAS() such as fact_table[ITEM_NO] and Product_table[Item_parts_no] match in both data type and content. Also, confirm that slicers like Year, Dealer, Region, and Machine are based on fields from their respective dimension tables and are properly linked to the fact table.
     This ensures filter context flows correctly into the fact table and then into the product table via the virtual relationship. When using the Fleet_Quantity_Filtered measure in visuals like donut charts, make sure the grouping field (e.g., Dealer or AREA_NAME) is part of a table that maintains a relationship with the fact table. For troubleshooting, start with a simple table visual using fields like Dealer, ITEM_NO, and the measure to validate logic and filter behavior. If issues persist, feel free to share more details about your visual configuration. I would be happy to assist .

    Regards, 
    Karpurapu D.