Can we have a common DAX expression which can be used in multiple measures
I have measures in which I am using DAX to filter two fact tables and then perform some aggregation. I have written the same filtering condition in almost 50 measures. Is it somehow possible that I can save these filtering conditions somewhere outside of measure(something like Global Variable)?
There are 40-50 such measures and users want to see at least 10 of them together. Now, When I am putting them together in a matrix visual, they are taking a long time to evaluate, 20 mins to be accurate. I think this is due to filtering two fact tables at once(both the fact tables are huge, 15 million rows in one and 5 million in another) and that too for every measure. Do you think there is any way that I can optimize the performance?