Power BI is turning 10, and we’re marking the occasion with a special community challenge. Use your creativity to tell a story, uncover trends, or highlight something unexpected.
Get startedJoin us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.
Hi,
I am trying to optimize my measure below by replacing the filter conditions with Calculatetable. I was able to replace my date filter. But replacing the other filter on GL Master is not giving desired results. GL Master has multiple hierarchy levels. Though it returns correct value at the summation level, but repeats the sum value when report is crossfiltered at any GL Master hierarchy:
Entity Code | Financial Year(Date) | Account Head(GL Master) | YTD Amount - 1 | YTD Amount - 2 |
111 | FY21 | Assets | 4509817901 | 180025.73 |
111 | FY21 | Equity | -12495100815 | 180025.73 |
111 | FY21 | Expenses | 1823651648 | 180025.73 |
111 | FY21 | Income | -2602949869 | 180025.73 |
111 | FY21 | Liability | 8547147510 | 180025.73 |
111 | FY21 | Memo | 231583709.2 | 180025.73 |
111 | FY21 | Other Comprehensive Income | 180025.73 | |
111 | FY21 | Tax expense | -13970058.9 | 180025.73 |
111 | FY21 | (blank) | 180025.73 | |
FY21 Total | 180025.73 | 180025.73 | ||
111 Total | 180025.73 | 180025.73 | ||
Grand Total | 180025.73 | 180025.73 |
Is there any way to make Calculatetable work dynamically with report slicers or optimize this measure further with desired results (as in YTD Amount -1)?
FYI: I have tried ALLSELECTED two ways:
Thanks in advance,
Shailee.
@Anonymous , both filter, and calculatetable is going to generate a table as output that will filter. Unless calculatetable add a value I doubt there is need to use it. Also you are using the calculate table on the master table that will be limited one table, create on fact that will allow you to filter all master table inside one calculatetable.
Hi Amit,
I was trying to replace Filter with Calculatetable for optimizing my measure basis the following article:
https://www.sqlbi.com/articles/filter-vs-calculatetable-optimization-using-cardinality-estimation/#
As my fact table is huge and this measure extrapolates it on my Date table for all dates within the selected range. Plus it does a lookup on my GL Master table which is also large compared to other masters.
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
10 | |
9 | |
8 | |
8 | |
8 |
User | Count |
---|---|
13 | |
12 | |
11 | |
10 | |
8 |