Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredGet Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
I'm trying to build a single page report where stakeholders can look up an individual customer and see a combination of information about that specific customer and the larger account that customer belongs to.
Right now I am using a slicer to identify which customer to focus on. From there I want to have a handful of cards (or a multi-row card) that display
1. Customer total sales
2. Customer Account Name
3. Account total sales
I started by trying to create a Results Table summarizing total sales by account, but I ALSO need to filter all this information by YEAR. I have no trouble getting the Account Name to appear, nor any trouble with the Customer Total Sales to be affected by a YEAR filter. However, I can't figure out how to have make it so that the Account Total Sales is influenced by it.
In other words, how can I make is so that the Account Total Sales information will a) reflect the correct account based on the Customer selected, and b) dynamically update when the YEAR Filter on the page is applied?
Solved! Go to Solution.
To achieve this, you'll need to create dynamic measures that can respond to both the Customer Slicer and the YEAR Filter on the report page. The key is to use CALCULATE and ALL functions to control how filtering is applied to the Account Total Sales while still maintaining the dynamic interaction with the selected Customer and YEAR.
Steps to Create the Dynamic Measures:
CustomerTotalSales =
SUM('Sales'[SalesAmount])
This will automatically adjust based on the Customer selected from the slicer and the YEAR filter applied on the page.
CustomerAccountName =
SELECTEDVALUE('CustomerTable'[AccountName])
AccountTotalSales =
CALCULATE(
SUM('Sales'[SalesAmount]),
ALL('CustomerTable'[CustomerID])
)
Explanation:
Visual Interaction:
Alternate Approach: Using TREATAS (if needed)
If you have more complex relationships and need to ensure propagation across multiple tables, you could use TREATAS to control how filters propagate, but the above approach with CALCULATE and ALL should cover most scenarios.
To achieve this, you'll need to create dynamic measures that can respond to both the Customer Slicer and the YEAR Filter on the report page. The key is to use CALCULATE and ALL functions to control how filtering is applied to the Account Total Sales while still maintaining the dynamic interaction with the selected Customer and YEAR.
Steps to Create the Dynamic Measures:
CustomerTotalSales =
SUM('Sales'[SalesAmount])
This will automatically adjust based on the Customer selected from the slicer and the YEAR filter applied on the page.
CustomerAccountName =
SELECTEDVALUE('CustomerTable'[AccountName])
AccountTotalSales =
CALCULATE(
SUM('Sales'[SalesAmount]),
ALL('CustomerTable'[CustomerID])
)
Explanation:
Visual Interaction:
Alternate Approach: Using TREATAS (if needed)
If you have more complex relationships and need to ensure propagation across multiple tables, you could use TREATAS to control how filters propagate, but the above approach with CALCULATE and ALL should cover most scenarios.
Thank you! I think the inherent lesson is here is that I didn't understand the differences between measures and columns and was trying to do everything at the column level, which was leading towards a potential answer of way too many relational tables I wanted to deal with. Your explanation helped me see more how measures work.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
Check out the October 2025 Power BI update to learn about new features.