Forum Discussion
ByPass RLS with Disconnected Table - COMPLEX ISSUE HELP
- 10 months ago
You can build tables on the fly inside measures, particularly now that you can use SUMMARIZECOLUMNS inside a measure.
So you could use SUMMARIZECOLUMNS to store a table in variable, using the measure definitions above to get the correct numbers, use FILTER on that table variable to apply any additional filters, and then perform an AVERAGEX over that filtered variable.
Thank you for the input. Unfortunately, this solution does not work because once we aggregate it and not look at each individual CompData Facility, the comparison is no longer at an individual level and the Prior Year Sales and Qty are now aggregated and there are no 'comps'
Hi ryan_b_fiting,
Please check the PBIX file; I've made some changes and got the following output.
Thank you
- ryan_b_fiting10 months agoPost Patron
It does not appear that anything has changed in this new file. The results remain the same
If I choose Show Sales Comps it should be 2 facilities (if I am showing facilities) and total PriorYearSales of 310,000.However, we are not showing it on a Comp Facility by Facility Bases, we need to filter out the facilities that are not true comps and then aggregate/average. But when I remove the facilityKey from the table, the total becomes the sum of ALL 3 facilities which is wrong.