Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
I want to sum up sales with same store ID, are the following calculated columns interchangeable? They did give me the same result so far.
Method 1:
Sales =
var curid ='table1'[ID]
return SUMX(FILTER('table2',curid='table2'[ID]),'table2'[Sales__Local_currency])
Method2:
Sales 2 = CALCULATE(SUMX('table2','table2'[Sales__Local_currency]), 'table1'[ID]=RELATED('table2'[ID]))
The main difference between the FILTER() function and the filter expression in the CALCULATE() function is that the FILTER() function returns a new table, while the filter expression in the CALCULATE() function modifies the filter context of the current calculation. I think method 2 is better
Check out the July 2025 Power BI update to learn about new features.
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
User | Count |
---|---|
20 | |
7 | |
6 | |
5 | |
5 |
User | Count |
---|---|
26 | |
10 | |
10 | |
9 | |
6 |