Check your eligibility for this 50% exam voucher offer and join us for free live learning sessions to get prepared for Exam DP-700.
Get StartedDon't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.
I’m trying to create a calculated table containing salesresults for a specific team like this, using a measure to identify the team:
T_SalesByTeam = CALCULATETABLE(SUMMARIZE('Sales','Sales'[DateID],'Sales'[AccountManager],"Total sales",SUM('Sales'[Sales_Value])),FILTER('Teams',Teams[TeamID]=M_CurrentTeam))
But even though the measure M_CurrentTeam contains the right value (integer 8, put on a card for control), the table does not contain results from more than one team-member. And I suspect not all the results for this one either.
However, if I change the statement and put in 8 as a fixed number,
T_SalesByTeam = CALCULATETABLE(SUMMARIZE('Sales','Sales'[DateID],'Sales'[AccountManager],"Total sales",SUM('Sales'[Sales_Value])),FILTER('Teams',Teams[TeamID]=8))
I get the results from all members in team 8.
There must be something I don’t understand about when or where the measure is calculated.
The measure is created like this and returns the correct value depending on [CurrentUser]
M_CurrentTeam = MAXX(FILTER(Teams,Teams[UserID]=[CurrentUser]),Teams[TeamID]))
Why can't I use this measure in the CALCULATETABLE statement?
Regards,
John
Solved! Go to Solution.
@jmkvalsund , A calculated table can not use a slicer value. means they will take static value of slicer
@jmkvalsund , A calculated table can not use a slicer value. means they will take static value of slicer
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.
User | Count |
---|---|
96 | |
69 | |
44 | |
38 | |
29 |
User | Count |
---|---|
154 | |
93 | |
63 | |
42 | |
41 |