The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends September 15. Request your voucher.
Hello, scenario is on my visualization in Power BI, I have a drop down filter selection for customer, if a customer is selected, all data on visual updates for that customer only as expected. However, I need to create a measure comparing the customer result vs. the global environement to which that customer comes from. Example, that customer has 50 units. Others have more or less. I have created bands of units and assigned a numeric index as a calculated column in the query. Example 1 - 50 units = 1; 51 - 100 units = 2 and so on, so that each customer is assigned an index of the group they fall into. Now I need to create a calculation that compares that customer's specific average maintenance costs against the average maintenance costs of the group that the customer falls into. I am able to calculate the average maintenance from all groups and display on the same visualization as the selected customer using the below measure formula:
So it's: If the customer displayed = unit index 1 (1 - 50 units condo) then calculate the average maintenance of all customers that belong to the index 1 band and display this result while ignoring the current visualization filter of customer.
Hi,
Share some data and show the expected result.
The answer to this depends on what your data structure looks like and where you have stored the group index column. If it is a column on your 'dClient' table you could maybe do something like the following to remove all other filters on the dClient table, but keep the filters on the Group Index column.
User | Count |
---|---|
59 | |
55 | |
53 | |
49 | |
30 |
User | Count |
---|---|
177 | |
88 | |
70 | |
48 | |
48 |